-
Notifications
You must be signed in to change notification settings - Fork 468
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
Use new Database validation for Unique Fields when a Contentlets is saved or updated #30279
Comments
PR: #30466 |
Note to QA: To test it we need
URL: /v1/upgradetask
Also test another cases like using the uniquePerSite FIeld Variable set to true, or try to create a Variant version with the same unique value used by a DEFAULT Variant version, etc. |
INTERNAL QA: FAILED
This is what I did:
|
This is expected because we are not still cleaning up the extra table, it is going to work after this card #30285 is done Also you can not change the uniquePerSIte properties after create the first Contentlet because it is going to work after this other card #30281 |
After clarification from @freddyDOTCMS , I can confirm that the fix is working as expected. As he said, the cleanup process for the new table will be developed in another ticket. Also, keep in mind that the validation process when the DB check is enabled may be slower than when using ES for that. This has already been discussed, and approved. |
Approved: Tested on trunk_7a2d6bc, Docker, macOS 14.5, FF v126.0.1 |
Parent Issue
#29459
Problem Statement
Describe here #29459
We need to use the new API method created here #30277 to do the unique field validation any time a Contentlet is created, updated or imported, but we need to create a new config properties to enabled/disabled this new behavior if it is disabled then the old validation using ES is going to be used.
Steps to Reproduce
PUT: http://localhost:8082/api/v1/workflow/actions/default/fire/PUBLISH
Body:
Pre-request script:
Repeat this 5 times and check if you get any duplication, in the spike I got DUPLICATION every 5 running.
We need to send this change disabled it means dotCMS needs to keep using the ES Validation.
Acceptance Criteria
dotCMS Version
latest
Proposed Objective
Core Features
Proposed Priority
Priority 2 - Important
External Links... Slack Conversations, Support Tickets, Figma Designs, etc.
No response
Assumptions & Initiation Needs
No response
Quality Assurance Notes & Workarounds
No response
Sub-Tasks & Estimates
No response
The text was updated successfully, but these errors were encountered: