[Unique Fields] : Avoid validation when Unique Field values have not changed

Open
#30,704 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
backend, databases

Research direction

Start by tracing the Contentlet update flow and the Unique Fields recalculation process, comparing the Elasticsearch Strategy with the Database Strategy. Verify how unchanged and changed Unique Field values are detected; done means recalculation is not triggered for unchanged values while updates to those values still trigger it.

Written by the indexing model from the issue text.

Description

dotCMS: Unique Fields DB OKR : Customer Success OKR : Customer Support Team : Falcon Type : Task
Parent Issue
  • #29459
Task

When updating a Contentlet with one or more Unique Fields, we're always triggering the recalculation process on their values, even when they've not changed at all. This is not a big deal when using the Elasticsearch Strategy; however, it might not be a great idea when using the Database Strategy.

We need to be able to detect whether those values have changed or not, so we don't kick off the re-generation process when is not required.

Proposed Objective

Core Features

Proposed Priority

Priority 2 - Important

Acceptance Criteria

The recalculation process must not be kicked off when Unique Fields haven't been updated.

External Links... Slack Conversations, Support Tickets, Figma Designs, etc.

No response

Assumptions & Initiation Needs

No response

Quality Assurance Notes & Workarounds

Unless we log a message, the only way for QA to figure out when the recalculation process was not triggered is to notice that updating a Contentlet with an unchanged Unique Field takes less time compared to the moment it was created.

Sub-Tasks & Estimates

No response

Dominant language
Java
Stars
970
Forks
486
Avg merge
3d 33m
Merged PRs (30d)
170

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dotCMS/core

All issues in dotCMS/core

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.