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
fix: prevent commentor/viewer from enabling hidden columns #8268
base: develop
Are you sure you want to change the base?
Conversation
WalkthroughWalkthroughThe recent updates focus on enhancing role-based visibility and interaction with fields in a GUI component. New functionality includes checking user roles to determine the visibility of certain fields and introducing conditional logic for displaying columns based on specified IDs. These changes aim to improve user experience by tailoring interface interactions to user permissions and specific conditions. Changes
Assessment against linked issues
The changes introduced in the Recent Review DetailsConfiguration used: CodeRabbit UI Files selected for processing (1)
Files skipped from review as they are similar to previous changes (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 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 as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
@dstala I have fixed the hidden count issue and the issue I mentioned here. |
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.
Actionable comments posted: 1
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.
for viewer, the fields count is always hidden. we should exclude default count. but if user hides some more fields explicitly, count for those should be visible
@dstala I have added this feature. Please see this video - https://sreehari-jayaraj.neetorecord.com/watch/ec9fdbd5-24d8-4e2f-aa78-d6b2f7cea42e |
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 solution is broken for editor & creator roles. the said changes should only be applied to viewer/commenter role. that likely explains why tests are failing. you can investigate further.
I have fixed the issue. |
Change Summary
Provide summary of changes with issue number if any.
fix: prevent commentor/viewer from enabling hidden columns
Change type
Test/ Verification
Provide summary of changes.
Additional information / screenshots (optional)
Anything for maintainers to be made aware of
Summary by CodeRabbit