Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FF-2176: Add new earning preset #136

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

gkomarov-tv
Copy link

No description provided.

Copy link

@Sherbin Sherbin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Есть расхождения с теми фильтрами что летят на проде
Надо синкануть

right: true
- left: typespecs
operation: has_none_of
right: foreign
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Здесь должен быть foreign-issuer

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{'filter': [{'left': 'typespecs', 'operation': 'has_none_of', 'right': 'foreign-issuer'}]}

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Выяснил. Нет в этом необходимости. is_primary достаточно.

presets/uk.yaml Outdated
- left: is_primary
operation: equal
right: true
- left: typespecs
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{
    'filter': [{
        'left': 'typespecs',
        'operation': 'has_none_of',
        'right': 'cdi'
    }, {
        'left': 'exchange',
        'operation': 'equal',
        'right': 'LSE'
    }, {
        'left': 'is_primary',
        'operation': 'equal',
        'right': True
    }]
}

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Добавил 'has_none_of' => 'cdi'.

- left: is_primary
operation: equal
right: true
- left: typespecs
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Я бы уточнил у @epetrashevich

@@ -606,3 +606,18 @@ presets:
sort:
sortBy: description
sortOrder: asc
- name: earning
filter:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

По какой-то причине в проде кстом фильтры не применяются для Канады Индии Японии, только для России Тайланда, ЮК, Бразилии

if self.category['region'] in ["ru", "br", "uk", "th_TH"]:
EXTRA_FILTERS: t.Dict[str, t.List[t.Dict[str, t.Any]]] = {
	"ca": [
		{'left': 'exchange', 'operation': 'in_range', 'right': ['TSX', 'TSXV', 'CSE']},
	],
	"in": [
		{'left': 'exchange', 'operation': 'in_range', 'right': ['NSE']},
	],
	"ja": [
		{'left': 'exchange', 'operation': 'in_range', 'right': ['TSE']},
	],
	"ru": [
		{'left': 'typespecs', 'operation': 'has_none_of', 'right': 'foreign-issuer'}
	],
	"uk": [
		{'left': 'typespecs', 'operation': 'has_none_of', 'right': 'cdi'},
		{'left': 'exchange', 'operation': 'equal', 'right': 'LSE'},
	],
	"th_TH": [
		{'left': 'typespecs', 'operation': 'has_none_of', 'right': 'foreign'}
	],
	"br": [
		{'left': 'typespecs', 'operation': 'has_none_of', 'right': 'odd'}
	],
}

Это тоже надо уточнить со скриенрцами баг или небаг
Если небаг, то надо убрать уточнения из фильтров Канады Индии Японии

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

По Индии, оставляем потому-что
"скорее всего, стоит добавить эти фильтры, в индии две биржи , символа на них идентичны, одни символа для резидентов и для нерезидентов, вроде

так что по ним будет приходить одно и то же и одно мы выбрасываем, считая это дублями"

По Канаде и Японии
"можно сделать так же аналогично другим маркетным страницам по выбранным биржам"
Так что оставляем, чтобы было как и на других маркетных страницах, раз уж у нас только на это не работает.

Copy link

@Sherbin Sherbin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Есть расхождения с теми фильтрами что летят на проде
Надо синкануть

@Sherbin
Copy link

Sherbin commented Jun 5, 2023

Посмотрел, у меня вопросов больше нет

@Sherbin
Copy link

Sherbin commented Jun 7, 2023

По global.yaml тоже ок
Эти правки будут нужны для задачи FF-2318 Секция "World Stocks"

@Sherbin
Copy link

Sherbin commented Jun 8, 2023

Коммит FF-2176: Remove NSE exchange from India earning preset — любо! можно мержить

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants