Skip to content

Fix section related bugs #963

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

Merged
merged 5 commits into from
Apr 8, 2025
Merged

Fix section related bugs #963

merged 5 commits into from
Apr 8, 2025

Conversation

Bharatram-Santhanakrishnan
Copy link
Contributor

@Bharatram-Santhanakrishnan Bharatram-Santhanakrishnan commented Apr 1, 2025

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • My commits have standard messages as mentioned in Contributing Guidelines

Change log

  1. supportDependentAndMSDDInSections - A new property has been introduced to let users decide whether sectional fields should accept dependent and multiselect dropdown fields. This is to make the section more flexible and at the same time reduce the blast radius in case something goes wrong.

This flag only controls whether the fields are allowed to dropped in a section or not. It does not govern the below mentioned logic.

  1. The logic for computing the maximum number of fields a section can hold has been modified. Earlier, the logic took into account the error element as well into calculation thus returning one more than the actual count. This logic held good earlier since all the fields had a count of 1. Now that dependent fields are counted as 3, we needed to check what the draggedElement was and its count.

How Has This Been Tested?

Dev testing has been done by checking the max limit breach for different field types. Checked reordering as well to ensure that the element belonging to the same container does not contribute to the count.

… related to dep & msdd epic

Fixed a) Delete button shown for dependent fields within sections b) Max limit is not adhered to
within sections c) Show dependent field related error message instead of default fields error

BREAKING CHANGE: The logic for computing the count within sections is revised
@Bharatram-Santhanakrishnan Bharatram-Santhanakrishnan marked this pull request as ready for review April 1, 2025 13:33
Copy link
Collaborator

@prasanna-vijayan prasanna-vijayan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@prasanna-vijayan prasanna-vijayan merged commit d430bfa into next Apr 8, 2025
1 check passed
@prasanna-vijayan prasanna-vijayan deleted the fix-section-related-bugs branch April 8, 2025 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants