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

Create migration templates #112

Open
6 of 7 tasks
Ovaday opened this issue Apr 24, 2023 · 0 comments
Open
6 of 7 tasks

Create migration templates #112

Ovaday opened this issue Apr 24, 2023 · 0 comments
Assignees
Labels
development New feature or request

Comments

@Ovaday
Copy link
Owner

Ovaday commented Apr 24, 2023

Для миграции данных из статичного вида в использование базы данных нужно их вставить по определенной структуре. От тебя нужно создать и написать код в jupiter notebook.

  • Создай ветку от mig-aws
  • Открой helpers/translationsHelper.py. Там ты увидишь JSON объект из множества строк. Мне нужно сформировать из двух JSON объектов:
  • labels
  • week_labels

Следующую структуру. К примеру:

'wait_till_approved':
        {'russian': 'Подождите одобрения',
         'english': 'Please wait till you are approved'},

должно быть трансформировано в

{
  "label": {
    "S": "wait_till_approved"
  },
  "language": {
    "M": {
      "english": {
        "S": "Please wait till you are approved"
      },
      "russian": {
        "S": "Подождите одобрения"
      }
    }
  }
}
  • Окончательный результат должен быть в виде tuple:
result = ["wait_till_approved": {.......}, ...]
  • JupyterNotebook - файл назови DynamoDB_insertTransformator и положи в папку helpers
  • Создай пулл.реквест в mig-aws
@Ovaday Ovaday added the development New feature or request label Apr 24, 2023
@Ovaday Ovaday added this to the Week 1 -- Artem milestone Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
development New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants