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

Develop workflow for common meta DB tables #94

Open
nesnoj opened this issue Sep 20, 2019 · 7 comments
Open

Develop workflow for common meta DB tables #94

nesnoj opened this issue Sep 20, 2019 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@nesnoj
Copy link
Member

nesnoj commented Sep 20, 2019

The following meta app tables are used by different apps:

  • meta_assumption
  • meta_category
  • meta_source

When updating the WAMdev/prod, the only thing that doesn't get updated are the DB tables. While app tables are updated by the responsible app admin, common tables are not.
Over the time, the content of those tables diverged which is an annoying problem. We have to make sure the content always matches and there's a workflow you can rely upon. Therefore, we need a

Code of conduct (CoC)

  1. Modifications of meta tables must be done first on WAMdev
  2. Use the admin interface to add new datasets to meta tables as custom scripts or restore actions are likely to destroy or overwrite datasets used by other apps.
  3. Check whether WAMprod's meta tables contain datasets which are not included in WAMdev's tables and notify the blameworthy app admin to strictly follow this CoC ;).
  4. Update WAMprod meta tables whenever necessary either manually (e.g. admin interface) or using script <TBD>.

Awaiting your feedback.

Related meta app issues: #86 #22 #16 #7

@nesnoj nesnoj added the bug Something isn't working label Sep 20, 2019
@nesnoj
Copy link
Member Author

nesnoj commented Sep 26, 2019

@henhuy, if you don't mind I'll update the sources and category tables on WAMprod manually by tomorrow as I need them for StEmp ABW v1.0

@henhuy
Copy link
Contributor

henhuy commented Sep 27, 2019

What do you mean by manually?
Changing ids in table?
For me it's okay. Didn't have time for #86 yet...

@nesnoj
Copy link
Member Author

nesnoj commented Sep 27, 2019

What do you mean by manually?
Changing ids in table?

Yepp, our sources are stored on WAMdev, I'll manually add them to WAMprod.
Can I kick all of your sources on WAMdev? They seem outdated to me and you have the latest list on WAM, right?

For me it's okay. Didn't have time for #86 yet...

Nevermind, just keep in mind that StEmp ABW must be modified too if you implement #86..

@henhuy
Copy link
Contributor

henhuy commented Sep 27, 2019

Can I kick all of your sources on WAMdev? They seem outdated to me and you have the latest list on WAM, right?

No problem.

Nevermind, just keep in mind that StEmp ABW must be modified too if you implement #86..

For sure

@nesnoj
Copy link
Member Author

nesnoj commented Sep 27, 2019

@henhuy There're 2 categories "Warmwasser" on WAMprod, I'll delete the one which is not referenced by your sources or assumptions..

@henhuy
Copy link
Contributor

henhuy commented Sep 27, 2019

remove it. I'm going to reset my assumptions and sources anyway...

@nesnoj
Copy link
Member Author

nesnoj commented Sep 27, 2019

I updated the meta tables on WAMdev+WAMprod, they are now in sync!
Please use the COC above for future work.
I backupped the current state on the WAM server to /backup/WAM_meta_tables_190927/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants