[OSDEV-1830] SLC UAT Bug - Drop down menus under Additional information section do not show all available options#566
Conversation
…essing Type, except when the sector is Apparel—in that case, enforce taxonomy filters.
Dedupe Hub App | Unittest test suite - Code coverage reportTotal: 56.14%Your code coverage diff: 0.00% ▴ ✅ All code changes are covered |
Contricleaner App | Unittest test suite - Code coverage reportTotal: 98.91%Your code coverage diff: 0.00% ▴ ✅ All code changes are covered |
Countries App | Unittest test suite - Code coverage reportTotal: 100%Your code coverage diff: 0.00% ▴ ✅ All code changes are covered |
📝 WalkthroughWalkthroughThis pull request updates the Changes
Possibly related PRs
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (10)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (3)
doc/release/RELEASE-NOTES.md (3)
15-15: Remove Trailing Punctuation from Heading
The heading “#### Migrations:” on line 15 ends with a colon. According to markdown lint guidelines (MD026), trailing punctuation in headings should be removed.
Suggested change:-#### Migrations: +#### Migrations🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
15-15: Trailing punctuation in heading
Punctuation: ':'(MD026, no-trailing-punctuation)
30-30: Remove Trailing Punctuation from Another Heading
Similarly, the “### Release instructions:” heading on line 30 should not have a trailing colon.
Suggested change:-### Release instructions: +### Release instructions🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
30-30: Trailing punctuation in heading
Punctuation: ':'(MD026, no-trailing-punctuation)
32-33: Adjust Unordered List Indentation for Better Consistency
The nested bullet items on lines 32 and 33 are indented with 4 spaces. Markdown lint (MD007) expects an indentation of 2 spaces for nested lists. Please update these lines to use 2 spaces.
Suggested change:- * `migrate` - * `reindex_database` + * `migrate` + * `reindex_database`🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
32-32: Unordered list indentation
Expected: 2; Actual: 4(MD007, ul-indent)
33-33: Unordered list indentation
Expected: 2; Actual: 4(MD007, ul-indent)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
doc/release/RELEASE-NOTES.md(1 hunks)src/react/src/__tests__/components/ProductionLocationInfo.test.js(1 hunks)src/react/src/components/Contribute/ProductionLocationInfo.jsx(4 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
doc/release/RELEASE-NOTES.md
15-15: Trailing punctuation in heading
Punctuation: ':'
(MD026, no-trailing-punctuation)
30-30: Trailing punctuation in heading
Punctuation: ':'
(MD026, no-trailing-punctuation)
32-32: Unordered list indentation
Expected: 2; Actual: 4
(MD007, ul-indent)
33-33: Unordered list indentation
Expected: 2; Actual: 4
(MD007, ul-indent)
🔇 Additional comments (8)
src/react/src/__tests__/components/ProductionLocationInfo.test.js (1)
161-163: Changes to test assertions align with new UI behavior.The test assertions have been updated to reflect the new functionality where users can now both select from predefined options or enter custom values for location and processing types.
src/react/src/components/Contribute/ProductionLocationInfo.jsx (6)
110-110: New state variable to control taxonomy filtering.The
enabledTaxonomystate variable is added to track when taxonomy filtering should be applied, which aligns with the described bug fix in OSDEV-1830.
404-408: Appropriate logic for enabling taxonomy filtering only for Apparel sector.This effect correctly implements the requirement to enable taxonomy filtering only when the Apparel sector is the sole selection, matching the PR objectives.
731-735: Updated text reflects new functionality.The helper text has been updated to indicate users can now "select or enter" values, which accurately reflects the new functionality where users can input custom values.
736-764: Conditional rendering of Location Type field based on sector selection.This implementation correctly enforces taxonomy filtering for the Apparel sector while allowing free-form input for other sectors, addressing the bug mentioned in OSDEV-1830.
779-783: Updated text for Processing Type reflects new functionality.Similar to the Location Type field, this helper text has been updated to indicate users can now "select or enter" values.
784-812: Conditional rendering of Processing Type field based on sector selection.This implementation mirrors the Location Type field behavior, properly addressing the bug by enforcing taxonomy filtering only for the Apparel sector.
doc/release/RELEASE-NOTES.md (1)
6-11: Release 2.1.0 Section Added Successfully
The new section for Release 2.1.0 is clearly structured and provides all the high-level subsections (Introduction, Database changes, Code/API changes, Architecture/Environment changes, Bugfix, and Release instructions). This aligns well with the PR objectives and the AI-generated summary.
# Conflicts: # doc/release/RELEASE-NOTES.md
|




OSDEV-1830 SLC UAT Bug - Drop down menus under Additional information section do not show all available options