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

Disable input in edit data source when data_source.manageableBy is none #7307

Merged
merged 5 commits into from
Jul 18, 2024

Conversation

eemijuntunen
Copy link
Contributor

@eemijuntunen eemijuntunen commented Jul 18, 2024

Description

Disable the input fields on the edit data source form when data_source.manageableBy is set to none. For OpenSearch connections.

Screenshot

No Authentication - data_source.manageableBy: "none"
Screenshot 2024-07-18 at 10 51 13 AM
No Authentication - data_source.manageableBy: "all"
Screenshot 2024-07-18 at 11 31 48 AM

Username and Password Authentication - data_source.manageableBy: "none"
Screenshot 2024-07-18 at 10 51 28 AM

Username and Password Authentication - data_source.manageableBy: "all"
Screenshot 2024-07-18 at 11 34 25 AM

AWS Authentication - data_source.manageableBy: "none"
Screenshot 2024-07-18 at 10 51 41 AM

AWS Authentication - data_source.manageableBy: "all"
Screenshot 2024-07-18 at 11 34 12 AM

Testing the changes

  1. data_source.enabled: true
    data_source.manageableBy: "none"
  2. yarn start
  3. Use data source management

Changelog

  • feat: Disable inputs in edit data source screen when data_source.manageableBy is none

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

Copy link

codecov bot commented Jul 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.50%. Comparing base (2c6e78e) to head (67ae8ff).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7307   +/-   ##
=======================================
  Coverage   67.50%   67.50%           
=======================================
  Files        3501     3501           
  Lines       69343    69345    +2     
  Branches    11305    11307    +2     
=======================================
+ Hits        46808    46812    +4     
+ Misses      19779    19778    -1     
+ Partials     2756     2755    -1     
Flag Coverage Δ
Linux_1 33.11% <ø> (ø)
Linux_2 55.46% <ø> (ø)
Linux_3 43.06% <100.00%> (+<0.01%) ⬆️
Linux_4 34.71% <ø> (ø)
Windows_1 33.13% <ø> (ø)
Windows_2 55.41% <ø> (ø)
Windows_3 43.06% <100.00%> (+<0.01%) ⬆️
Windows_4 34.71% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@zhongnansu zhongnansu left a comment

Choose a reason for hiding this comment

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

re-running failed CI

@zhyuanqi
Copy link
Collaborator

Rebased the branch

eemijuntunen and others added 4 commits July 18, 2024 15:27
Signed-off-by: Eemi Juntunen <eemijun@amazon.com>
Signed-off-by: Eemi Juntunen <eemijun@amazon.com>
Signed-off-by: Eemi Juntunen <eemijun@amazon.com>
Signed-off-by: Eemi Juntunen <eemijun@amazon.com>
@BionIT BionIT merged commit ddc26fc into opensearch-project:main Jul 18, 2024
73 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 18, 2024
…ne (#7307)

* Disable input in edit data source when data_source.manageableBy is none

Signed-off-by: Eemi Juntunen <eemijun@amazon.com>

* Changeset file for PR #7307 created/updated

* Removed unnecessary canManageDataSource check

Signed-off-by: Eemi Juntunen <eemijun@amazon.com>

* Fix lint issue

Signed-off-by: Eemi Juntunen <eemijun@amazon.com>

* Update snapshot

Signed-off-by: Eemi Juntunen <eemijun@amazon.com>

---------

Signed-off-by: Eemi Juntunen <eemijun@amazon.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit ddc26fc)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
BionIT pushed a commit that referenced this pull request Jul 19, 2024
…ne (#7307) (#7310)

* Disable input in edit data source when data_source.manageableBy is none



* Changeset file for PR #7307 created/updated

* Removed unnecessary canManageDataSource check



* Fix lint issue



* Update snapshot



---------



(cherry picked from commit ddc26fc)

Signed-off-by: Eemi Juntunen <eemijun@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants