Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
metadata history viewing with user profile level #7450
metadata history viewing with user profile level #7450
Changes from 5 commits
ba0888f
b7f7b3e
fd48d9f
9b4b3f6
7c2d184
9e9d09a
4c22429
7709646
ac9d91c
c294463
8d13b8e
0dcfcab
deaf064
4f16b91
e2e76ff
7974efa
80eddab
f4ee086
d908561
3d172b8
9aa3b6e
62dfa16
f2a5ffa
9ac4bcf
38e31a5
a499d1e
87e2637
ead9a51
eac2007
9fa5a4b
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Please update the file with prettier formatting.
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.
The format was indeed lining with all methods. It was copy pasted. Here is what my IDE looks like. The pretty formatting will need to be at the whole file level not limited to the code that I commit.
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 see this other setting:
To enable the history, maybe can be unified, either changing the new one to be in
system/metadata/...
or add a migration to move this one tometadata/history/...
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.
The system/... does not work very well on UI. I will try metadata/history/enable
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 migrated all system/metadata/history/enabled to metadata/history/enabled including database migration script with and update statement, ui, and Java constants.
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 change should be moved to https://github.com/geonetwork/core-geonetwork/blob/main/web/src/main/webapp/WEB-INF/classes/setup/sql/migrate/v441/migrate-default.sql
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 moved the script to v441. I also added update statement to set the name of system/metadata/history/enabled to metadata/history/enabled as you suggested in another comment