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

Hide notebook feature when MDS enabled and remove security dashboard API dependency calling #201

Merged
merged 9 commits into from
Jun 5, 2024

Conversation

raintygao
Copy link
Collaborator

@raintygao raintygao commented Jun 4, 2024

Description

Hide notebook feature when MDS enabled and remove security dashboard API dependency calling

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test.
  • New functionality has user manual doc added.
  • Commits are signed per the DCO using --signoff.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: tygao <tygao@amazon.com>
Signed-off-by: tygao <tygao@amazon.com>
Signed-off-by: tygao <tygao@amazon.com>
@raintygao raintygao changed the title Hide notebook feature when MDS enabled and remove security API calling Hide notebook feature when MDS enabled and remove security dashboard API dependency calling Jun 4, 2024
@raintygao raintygao marked this pull request as ready for review June 4, 2024 10:09
Signed-off-by: tygao <tygao@amazon.com>
Signed-off-by: tygao <tygao@amazon.com>
Signed-off-by: tygao <tygao@amazon.com>
/**
* Returns true if current user has permission to use assistant features.
*/
userHasAccess: () => Promise<boolean>;
Copy link
Member

Choose a reason for hiding this comment

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

Is it safe to remove this API?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

In my understanding, we use this property to control user access to assistant. If we remove security API and don't control user access in frontend, we could remove this API, right?

@raintygao raintygao added backport 2.x Trigger the backport flow to 2.x v2.15.0 labels Jun 5, 2024
Signed-off-by: tygao <tygao@amazon.com>
Signed-off-by: tygao <tygao@amazon.com>
Signed-off-by: tygao <tygao@amazon.com>
@raintygao raintygao merged commit e834cd5 into opensearch-project:main Jun 5, 2024
8 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jun 5, 2024
…API dependency calling (#201)

* hide notebook feature when mds enabled

Signed-off-by: tygao <tygao@amazon.com>

* remove useraccess

Signed-off-by: tygao <tygao@amazon.com>

* add internal account api

Signed-off-by: tygao <tygao@amazon.com>

* test: update tests

Signed-off-by: tygao <tygao@amazon.com>

* doc: update changelog

Signed-off-by: tygao <tygao@amazon.com>

* update mock function

Signed-off-by: tygao <tygao@amazon.com>

* update mock function

Signed-off-by: tygao <tygao@amazon.com>

* delete unused file

Signed-off-by: tygao <tygao@amazon.com>

---------

Signed-off-by: tygao <tygao@amazon.com>
(cherry picked from commit e834cd5)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md
raintygao pushed a commit that referenced this pull request Jun 6, 2024
…API dependency calling (#201) (#202)

* hide notebook feature when mds enabled

Signed-off-by: tygao <tygao@amazon.com>

* remove useraccess

Signed-off-by: tygao <tygao@amazon.com>

* add internal account api

Signed-off-by: tygao <tygao@amazon.com>

* test: update tests

Signed-off-by: tygao <tygao@amazon.com>

* doc: update changelog

Signed-off-by: tygao <tygao@amazon.com>

* update mock function

Signed-off-by: tygao <tygao@amazon.com>

* update mock function

Signed-off-by: tygao <tygao@amazon.com>

* delete unused file

Signed-off-by: tygao <tygao@amazon.com>

---------

Signed-off-by: tygao <tygao@amazon.com>
(cherry picked from commit e834cd5)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Trigger the backport flow to 2.x v2.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants