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

Конфигурации топов словарей должны читаться из файла, а не из кучи классов #98

Open
dmitry-weirdo opened this issue Nov 20, 2024 · 0 comments

Comments

@dmitry-weirdo
Copy link
Collaborator

dmitry-weirdo commented Nov 20, 2024

Конфигурация вроде OneHundredRussianTopExporter — это избыточный оверкилл. Логично читать подобные конфигурации из json-файла, чтобы настраивать словари можно было более-менее динамически, не меняя код.

Также надо подумать, как включать/выключать словари в конфиге вроде statistics-generator-config-generate-all.json (класс StatisticsGeneratorConfig).

Аналогично для NonStandardDictionary.
NonStandardDictionary нужно оставить тем же объектом, но читать из файла вместо хардкодинга. Получать из кэша по коду словаря (числовому айдишнику)

Более того, полный список словарей потом можно будет загрузить из csv-файла Переборыча. Но там нет названия в родительном падеже. Но их можно загружать отдельно, уже из внешнего файла (необходимо только для словарей, которые используются в топах).

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

dmitry-weirdo added a commit that referenced this issue Nov 26, 2024
…n can look like. Add dictionary tags enum.
dmitry-weirdo added a commit that referenced this issue Nov 26, 2024
…hat will be loaded from the json configuration.
dmitry-weirdo added a commit that referenced this issue Nov 27, 2024
…onaries data from json file into list of Kotlin objects.
dmitry-weirdo added a commit that referenced this issue Nov 27, 2024
dmitry-weirdo added a commit that referenced this issue Nov 27, 2024
dmitry-weirdo added a commit that referenced this issue Nov 27, 2024
…ardVocabularyTopExporter` based on the data from the json file.
dmitry-weirdo added a commit that referenced this issue Nov 27, 2024
…the s3 bucket to where it was put by a GitActions job.
dmitry-weirdo added a commit that referenced this issue Nov 27, 2024
… (in our case it's `kgstats-generated/2024.11.11/stats`.
dmitry-weirdo added a commit that referenced this issue Nov 27, 2024
dmitry-weirdo added a commit that referenced this issue Nov 27, 2024
….11. Just xls and zip files changes + comments in the static css files.
dmitry-weirdo added a commit that referenced this issue Nov 27, 2024
…nd use a single LoggerWrapper that will append this loggerName to the logs.
dmitry-weirdo added a commit that referenced this issue Nov 27, 2024
dmitry-weirdo added a commit that referenced this issue Nov 27, 2024
…ter implementations - use minRacesCount and loggerName from cache. Excel data not yet.
dmitry-weirdo added a commit that referenced this issue Nov 27, 2024
… and return from map when querying by dictionaryId.
dmitry-weirdo added a commit that referenced this issue Nov 28, 2024
dmitry-weirdo added a commit that referenced this issue Nov 28, 2024
dmitry-weirdo added a commit that referenced this issue Nov 28, 2024
dmitry-weirdo added a commit that referenced this issue Nov 28, 2024
…eed" for any dictionary instead of passing the same page number every time.
dmitry-weirdo added a commit that referenced this issue Nov 28, 2024
dmitry-weirdo added a commit that referenced this issue Nov 28, 2024
…coded values in `header.ftl` into dictionary parameters.
dmitry-weirdo added a commit that referenced this issue Nov 28, 2024
dmitry-weirdo added a commit that referenced this issue Nov 28, 2024
…, use a list of integer dictionary ids instead of separate boolean flags.
dmitry-weirdo added a commit that referenced this issue Nov 28, 2024
…y, based on config. Pass the `PlayerVocabularyStatsRepository` from `StatisticsGenerator`.
dmitry-weirdo added a commit that referenced this issue Nov 28, 2024
….11. Just xls and zip files changed (118 files total).
dmitry-weirdo added a commit that referenced this issue Nov 28, 2024
…of hard-coded implementations. Old implementations finally removed.

- Far from perfect, but a nice intermediate state.
dmitry-weirdo added a commit that referenced this issue Nov 28, 2024
….11. Just xls and zip files changed (118 files total).
dmitry-weirdo added a commit that referenced this issue Nov 28, 2024
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

No branches or pull requests

1 participant