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

Check setup for new instances #375

Open
KlausIllmayer opened this issue Mar 6, 2023 · 4 comments
Open

Check setup for new instances #375

KlausIllmayer opened this issue Mar 6, 2023 · 4 comments
Assignees

Comments

@KlausIllmayer
Copy link
Contributor

When setting up a new instance of marketplace with the APPLICATION_PROFILE prod I discovered strange prefilled values:

  • there should be no users but the system moderator-user was present in the database
  • there should be no property-types but the conflict-at-source-property-type was set

It could be, that this is by intention, but I'm not sure about that. This is a minor issue and more for documentation, but it could be interesting to think it through and also to try out a new instance with APPLICATION_PROFILE develop.

@KlausIllmayer KlausIllmayer self-assigned this Mar 6, 2023
@KlausIllmayer
Copy link
Contributor Author

remark: conflict-at-source must(?) be ord=36 as it is hardcoded in the database-changelog 0056-SSHOC_85-conflict_at_source_property.yaml, that is also the reason that it is present in an empty new instance. the same is true for the user, which is also created in the database-changelog 0050-SSHOC_81-system_moderator.yaml (also with id=5 hardcoded)

@tparkola what do you think about this? should such additions solved differently? it does not look to me as good practice but maybe it is the only solution for adding new users/properties?

@KlausIllmayer
Copy link
Contributor Author

additional question @tparkola : would it be then wrong to add the property conflict-at-source into https://github.com/SSHOC/sshoc-marketplace-backend/blob/develop/src/main/resources/initial-data/property-type-data.yml as it most probably will get in conflict with the databae-changelog 056-SSHOC_85-conflict_at_source_property.yaml?

@laureD19 laureD19 added this to the Q3 2023 milestone Aug 23, 2023
@tparkola
Copy link
Contributor

The migrations reflect how the system evolved over time, so probably all the additions/modifications had a reason behind. We could try to organise the changes in a single file, etc. but this introduced risks (see https://docs.liquibase.com/workflows/liquibase-community/trimming-changelogs.html). So unless something is working bad / perform poor I would not spend time on that. Hope that helps.

@vronk vronk removed this from the Q3 2023 milestone Oct 24, 2023
@vronk
Copy link
Contributor

vronk commented Oct 24, 2023

Maybe revisit in context of some consolidation/overhaul action

@laureD19 laureD19 added this to the Q1 2024 milestone Mar 7, 2024
@laureD19 laureD19 removed this from the Q1 2024 milestone Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants