-
Notifications
You must be signed in to change notification settings - Fork 1
293011 upgrade maven depedency postgresql from 42.6.0 to 42.7.8
#158
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
base: SandboxEnv
Are you sure you want to change the base?
293011 upgrade maven depedency postgresql from 42.6.0 to 42.7.8
#158
Conversation
…schema `dataset_0` and removed explicit default schema from entities
|
This is a much needed change to correctly resolve tenants while booting spring. I removed the default schema at entities and put a default schema at |
| public static String getTenantName() { | ||
| Map<String, Object> properties = thread.get(); | ||
| String datasetName = ""; | ||
| String datasetName = "dataset_0"; // default schema |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is essential to resolve a schema before startup
| tableValue.setIdTableSchema(schemaId); | ||
| tableValue = tableRepository.save(tableValue); | ||
| } | ||
| LOG.info("[CHRIS] TableValue: {}", tableValue); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have to remove the logs starting with [CHRIS]
Also not sure if this part of the code is needed currently, I have to check it
|
You can proceed with the merge |
| @Id | ||
| @GenericGenerator(name = "record_sequence_generator", | ||
| strategy = "org.eea.dataset.persistence.data.sequence.RecordValueIdGenerator") | ||
| @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "record_sequence_generator") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should not be removed
This is the bump up from version
42.6.0to42.7.8for maven dependencypostgresql.There are active issues that put the whole project at risk, because there is a more strict handling of resolving tenants, entities have to assign a default schema and also it enforces the actual foreign-key rules defined in the database to save an object, you cannot just save a child with assigned parent if parent is a new object and not already existing to database.
Next changes should abort this default schema, mutate the tenant resolver classes and have extra configuration about tenants if needed. This is a complex task and hard to test across platform.