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

Рефакторинг конфигов #58

Open
dmitry-weirdo opened this issue Jan 13, 2021 · 0 comments
Open

Рефакторинг конфигов #58

dmitry-weirdo opened this issue Jan 13, 2021 · 0 comments

Comments

@dmitry-weirdo
Copy link
Collaborator

dmitry-weirdo commented Jan 13, 2021

Задача, чтобы было где излагать мысли и под чем коммитить.

Сейчас конфиги используются в

  • PlayerDataDownloader
  • PlayerJsonParser
  • KgParserApplication
    • Тот же конфиг для импорта данных (передаётся в PlayerJsonParser)
    • ExportContext для генерации
      • фактически те же поля, только context.dataDownloadEndDate — надо заполнить уже после завершения экспорта, то есть после работы PlayerDataDownloader.
      • startDate тоже заполняется в PlayerDataDownloader, когда он начинает загрузку данных.
  • Для генерации нужен свой конфиг, который будет настраивать:
    • Какие экспортеры (aka генераторы) запускать.
    • Желательно также добавить minRacesCount по экспортерам, чтобы можно было перегружать его для каждого экспортера.

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

dmitry-weirdo added a commit that referenced this issue Jan 17, 2021
…ics" package. Draft of Config class added.
dmitry-weirdo added a commit that referenced this issue Jan 17, 2021
…rialize with pretty-print. Updated Jackson version to 2.12.1.
dmitry-weirdo added a commit that referenced this issue Jan 17, 2021
…ed, but not yet tested.

- PlayerDataDownloader and PlayerJsonParser are working.
- Old PlayerDataDownloader.Config removed.
- Added configs for previous data loads. There will be problems with LocalDateTime parsing,
should be changed and tested (timezone and timeformat problems expected).
dmitry-weirdo added a commit that referenced this issue Jan 17, 2021
… For import, time is converted to UTC. Application checked, it's working.
dmitry-weirdo added a commit that referenced this issue Jan 17, 2021
dmitry-weirdo added a commit that referenced this issue Jan 17, 2021
…onData.importDate → PlayerEntity.importDate conversion.
dmitry-weirdo added a commit that referenced this issue Jan 20, 2021
…ics" package. Draft of Config class added.
dmitry-weirdo added a commit that referenced this issue Jan 20, 2021
…rialize with pretty-print. Updated Jackson version to 2.12.1.
dmitry-weirdo added a commit that referenced this issue Jan 20, 2021
…ed, but not yet tested.

- PlayerDataDownloader and PlayerJsonParser are working.
- Old PlayerDataDownloader.Config removed.
- Added configs for previous data loads. There will be problems with LocalDateTime parsing,
should be changed and tested (timezone and timeformat problems expected).
dmitry-weirdo added a commit that referenced this issue Jan 20, 2021
… For import, time is converted to UTC. Application checked, it's working.
dmitry-weirdo added a commit that referenced this issue Jan 20, 2021
dmitry-weirdo added a commit that referenced this issue Jan 25, 2021
… each Exporter execution on/off. Script is not yet adapted.
dmitry-weirdo added a commit that referenced this issue Jan 25, 2021
…n in the script. Removing stats directory before the generation.
dmitry-weirdo added a commit that referenced this issue Jan 25, 2021
dmitry-weirdo added a commit that referenced this issue Jan 25, 2021
@dmitry-weirdo dmitry-weirdo reopened this Jan 26, 2021
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