Skip to content
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

mgr/dashboard: fix nfs exports form issues with squash field #47571

Merged
merged 2 commits into from Sep 4, 2022

Conversation

nizamial09
Copy link
Member

  1. Squash is not a mandatory field.
  2. If the export is created from backend, then squash can have many
    different names for each types of squash. for eg.
['root', 'root_squash', 'rootsquash', 'rootid', 'root_id_squash', 'rootidsquash', 'all', 'all_squash', 'allsquash', 'all_anomnymous', 'allanonymous', 'no_root_squash', 'none', 'noidsquash']

so we need a proper matching in the ui too otherwise the edit field will
not have any value for the squash field.

  1. Removed unncessary dropdown helper if there are values for the squash
    and access types.

Fixes: https://tracker.ceph.com/issues/57114

Contribution Guidelines

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows

@nizamial09 nizamial09 requested a review from a team as a code owner August 12, 2022 10:53
@nizamial09 nizamial09 requested review from nSedrickm and pereman2 and removed request for a team August 12, 2022 10:53
@nizamial09 nizamial09 changed the title mgr/dashboard: fix nfs exports form issues with squash field mgr/dashboard: fix nfs exports form issues with squash field Aug 12, 2022
@nizamial09
Copy link
Member Author

jenkins test dashboard

@nizamial09
Copy link
Member Author

jenkins test dashboard cephadm

@tchaikov
Copy link
Contributor

jenkins test make check

@epuertat
Copy link
Member

jenkins test make check

@epuertat
Copy link
Member

jenkins test dashboard

@github-actions github-actions bot added this to In progress in Dashboard Aug 24, 2022
@aaSharma14
Copy link
Contributor

jenkins retest this please

Dashboard automation moved this from In progress to Reviewer approved Aug 26, 2022
Copy link
Contributor

@avanthakkar avanthakkar left a comment

Choose a reason for hiding this comment

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

LGTM

1. Squash is not a mandatory field.
2. If the export is created from backend, then squash can have many
   different names for each types of squash. for eg.
```
['root', 'root_squash', 'rootsquash', 'rootid', 'root_id_squash', 'rootidsquash', 'all', 'all_squash', 'allsquash', 'all_anomnymous', 'allanonymous', 'no_root_squash', 'none', 'noidsquash']
```
so we need a proper matching in the ui too otherwise the edit field will
not have any value for the squash field.

3. Removed unncessary dropdown helper if there are values for the squash
   and access types.

Fixes: https://tracker.ceph.com/issues/57114
Signed-off-by: Nizamudeen A <nia@redhat.com>
This actually broke the doc service when the developer environment is of
main branch

Signed-off-by: Nizamudeen A <nia@redhat.com>
@nizamial09
Copy link
Member Author

jenkins test make check

@nizamial09
Copy link
Member Author

jenkins test api

@nizamial09
Copy link
Member Author

jenkins test dashboard

@nizamial09
Copy link
Member Author

jenkins test dashboard cephadm

@aaSharma14
Copy link
Contributor

jenkins test make check

@aaSharma14
Copy link
Contributor

jenkins test dashboard

@aaSharma14
Copy link
Contributor

jenkins test make check

@aaSharma14
Copy link
Contributor

jenkins test dashboard

@pereman2
Copy link
Contributor

pereman2 commented Sep 1, 2022

jenkins test make check

@epuertat epuertat moved this from Reviewer approved to Ready-to-merge in Dashboard Sep 2, 2022
@nizamial09 nizamial09 merged commit a873546 into ceph:main Sep 4, 2022
11 of 13 checks passed
Dashboard automation moved this from Ready-to-merge to Done Sep 4, 2022
@nizamial09 nizamial09 deleted the nfs-form-squash-norequired branch September 4, 2022 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Dashboard
  
Done
6 participants