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

[Backport 2.x] [Workspace]Validate features parameter in workspace create and update API #7937

Closed
wants to merge 4 commits into from

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 76de9a3 from #7884.

… API (#7884)

* Add validate for features field in workspace create and update API

Signed-off-by: Lin Wang <wonglam@amazon.com>

* Changeset file for PR #7884 created/updated

* Changeset file for PR #7884 created/updated

* Move router outside align with other plugins

Signed-off-by: Lin Wang <wonglam@amazon.com>

* Add ut and fix integration tests

Signed-off-by: Lin Wang <wonglam@amazon.com>

* Import use case id from default nav groups

Signed-off-by: Lin Wang <wonglam@amazon.com>

* Fix workspace routes UT

Signed-off-by: Lin Wang <wonglam@amazon.com>

* Share feature config generator between publicn and server

Signed-off-by: Lin Wang <wonglam@amazon.com>

* Fix osd server crashed due to import from public

Signed-off-by: Lin Wang <wonglam@amazon.com>

---------

Signed-off-by: Lin Wang <wonglam@amazon.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit 76de9a3)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy link
Contributor

❌ Invalid Changelog Heading

The '## Changelog' heading in your PR description is either missing or malformed. Please make sure that your PR description includes a '## Changelog' heading with proper spelling, capitalization, spacing, and Markdown syntax.

Copy link

codecov bot commented Aug 30, 2024

Codecov Report

Attention: Patch coverage is 33.33333% with 8 lines in your changes missing coverage. Please review.

Project coverage is 61.01%. Comparing base (0c7b210) to head (fcd582b).
Report is 14 commits behind head on 2.x.

Files with missing lines Patch % Lines
src/plugins/workspace/server/routes/index.ts 11.11% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              2.x    #7937      +/-   ##
==========================================
- Coverage   61.01%   61.01%   -0.01%     
==========================================
  Files        3670     3670              
  Lines       86747    86756       +9     
  Branches    13331    13333       +2     
==========================================
+ Hits        52930    52931       +1     
- Misses      30621    30629       +8     
  Partials     3196     3196              
Flag Coverage Δ
Linux_1 ?
Linux_2 56.15% <ø> (ø)
Linux_3 37.97% <ø> (ø)
Linux_4 29.78% <ø> (ø)
Windows_1 28.92% <33.33%> (-0.01%) ⬇️
Windows_2 56.10% <ø> (ø)
Windows_3 37.98% <ø> (ø)
Windows_4 29.78% <ø> (ø)

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.

@SuZhou-Joe
Copy link
Member

CI failed because of dependency on #7872 . cc @huyaboo @BionIT

@sejli
Copy link
Member

sejli commented Sep 3, 2024

#7958 has been merged in, CI should be fixed once branch is updated.

@wanglam
Copy link
Contributor

wanglam commented Sep 4, 2024

The backport PR of #7954 should fix current failed unit tests, shall we manual backport these two PRs in one sperate PR?

@wanglam
Copy link
Contributor

wanglam commented Sep 4, 2024

Hi, I've raised a manual PR(#7984) to combine #7884 and #7954. The UT work fine in the manual backport PR (See job details: https://github.com/opensearch-project/OpenSearch-Dashboards/actions/runs/10694131262/job/29645421003?pr=7984). Current automatic backport PR can be closed. Feel free to help me review #7984

@SuZhou-Joe
Copy link
Member

Close for #7984

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autocut Skip the changelog verification check on backports failed changeset seasoned-contributor v2.17.0 workspace
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants