Skip to content

[Backport 1.x] Add the tenant into the short URL once the short URL is resolved (#1462)#1514

Merged
DarshitChanpura merged 2 commits intoopensearch-project:1.xfrom
DarshitChanpura:backport/backport-1462-to-1.x
Jul 20, 2023
Merged

[Backport 1.x] Add the tenant into the short URL once the short URL is resolved (#1462)#1514
DarshitChanpura merged 2 commits intoopensearch-project:1.xfrom
DarshitChanpura:backport/backport-1462-to-1.x

Conversation

@DarshitChanpura
Copy link
Copy Markdown
Member

Description

Manually backports e9f9576 from #1462.

Category

Bug fix

Check List

- [ ] New functionality includes testing
- [ ] New functionality has been documented

  • 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.

@DarshitChanpura DarshitChanpura force-pushed the backport/backport-1462-to-1.x branch from be12094 to 08e63ab Compare July 17, 2023 14:43
@peternied
Copy link
Copy Markdown
Member

@DarshitChanpura Could you provide a reason why the manual backport was needed?

@DarshitChanpura
Copy link
Copy Markdown
Member Author

@DarshitChanpura Could you provide a reason why the manual backport was needed?

Yes. Auto backport to 1.x failed: #1462 (comment)

@peternied
Copy link
Copy Markdown
Member

Could you provide details on what conflict had to be handled, should another backport be included for this change?

@DarshitChanpura
Copy link
Copy Markdown
Member Author

Yes.

There was a conflict in tenant_resolver.ts import statements due to: 1. Change in the way OpenSearchDashboardsRequest is imported. 2. Introduction of new variables where some old variables were moved to common/index.ts

@cwperks
Copy link
Copy Markdown
Member

cwperks commented Jul 18, 2023

Looks like either the branch rules are off for 1.x or that the workflows should be updated to reflect the checks that this is expecting. We should see if its possible to update the workflows.

Edit: It may be best to synchronize the 1.3 and 1.x branches

@peternied
Copy link
Copy Markdown
Member

After #1521 is merged and this change is rebased the test requirements mismatch should be resolved.

@cwperks
Copy link
Copy Markdown
Member

cwperks commented Jul 19, 2023

This PR and #1514 can now be rebased on 1.x. I don't see the button to update the branch.

leanneeliatra and others added 2 commits July 19, 2023 11:58
…nsearch-project#1462)

* More information added

Signed-off-by: leanneeliatra <leanne.laceybyrne@eliatra.com>

* More information added

Signed-off-by: leanneeliatra <leanne.laceybyrne@eliatra.com>

* fixed linting errors

Signed-off-by: leanneeliatra <leanne.laceybyrne@eliatra.com>

* Removing Prerequisite Checks Workflow (opensearch-project#1456)

Signed-off-by: Ryan Liang <jiallian@amazon.com>
Signed-off-by: leanneeliatra <leanne.laceybyrne@eliatra.com>

* Removing Prerequisite Checks Workflow (opensearch-project#1456)

Signed-off-by: Ryan Liang <jiallian@amazon.com>
Signed-off-by: leanneeliatra <leanne.laceybyrne@eliatra.com>

* Removing Prerequisite Checks Workflow (opensearch-project#1456)

Signed-off-by: Ryan Liang <jiallian@amazon.com>
Signed-off-by: Ryan Liang <109499885+RyanL1997@users.noreply.github.com>
Signed-off-by: leanneeliatra <leanne.laceybyrne@eliatra.com>

* Extracting function to tenant_resolver and adding more appropriate comments.

Signed-off-by: leanneeliatra <leanne.laceybyrne@eliatra.com>

* lint errors fixed

Signed-off-by: leanneeliatra <leanne.laceybyrne@eliatra.com>

* Use version from package.json for integration tests (opensearch-project#1463)

* Use version from package.json for integration tests

Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: leanneeliatra <leanne.laceybyrne@eliatra.com>

* Adds 2.8 release notes (opensearch-project#1464)

Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
Co-authored-by: Ryan Liang <109499885+RyanL1997@users.noreply.github.com>
Signed-off-by: leanneeliatra <leanne.laceybyrne@eliatra.com>

* Cleaning up comments

Signed-off-by: Leanne Lacey-Byrne <leanne.laceybyrne@eliatra.com>
Signed-off-by: leanneeliatra <leanne.laceybyrne@eliatra.com>

* linting issues resolved

Signed-off-by: leanneeliatra <leanne.laceybyrne@eliatra.com>

* Removing Prerequisite Checks Workflow (opensearch-project#1456)

Signed-off-by: Ryan Liang <jiallian@amazon.com>
Signed-off-by: leanneeliatra <leanne.laceybyrne@eliatra.com>

* Removing Prerequisite Checks Workflow (opensearch-project#1456)

Signed-off-by: Ryan Liang <jiallian@amazon.com>
Signed-off-by: Ryan Liang <109499885+RyanL1997@users.noreply.github.com>
Signed-off-by: leanneeliatra <leanne.laceybyrne@eliatra.com>

* Update server/multitenancy/tenant_resolver.ts

Co-authored-by: Darshit Chanpura <35282393+DarshitChanpura@users.noreply.github.com>
Signed-off-by: leanneeliatra <131779422+leanneeliatra@users.noreply.github.com>
Signed-off-by: leanneeliatra <leanne.laceybyrne@eliatra.com>

* comments addressed & linting amended

Signed-off-by: leanneeliatra <leanne.laceybyrne@eliatra.com>

* integration test fix following rebase

Signed-off-by: leanneeliatra <131779422+leanneeliatra@users.noreply.github.com>
Signed-off-by: leanneeliatra <leanne.laceybyrne@eliatra.com>

---------

Signed-off-by: leanneeliatra <leanne.laceybyrne@eliatra.com>
Signed-off-by: Ryan Liang <jiallian@amazon.com>
Signed-off-by: Ryan Liang <109499885+RyanL1997@users.noreply.github.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
Signed-off-by: Leanne Lacey-Byrne <leanne.laceybyrne@eliatra.com>
Signed-off-by: leanneeliatra <131779422+leanneeliatra@users.noreply.github.com>
Co-authored-by: Ryan Liang <109499885+RyanL1997@users.noreply.github.com>
Co-authored-by: Craig Perkins <cwperx@amazon.com>
Co-authored-by: Darshit Chanpura <35282393+DarshitChanpura@users.noreply.github.com>
(cherry picked from commit e9f9576)
Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
@DarshitChanpura DarshitChanpura force-pushed the backport/backport-1462-to-1.x branch from 770f2b7 to f2753ab Compare July 19, 2023 15:59
@codecov
Copy link
Copy Markdown

codecov bot commented Jul 19, 2023

Codecov Report

Merging #1514 (f2753ab) into 1.x (cbe06da) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##              1.x    #1514   +/-   ##
=======================================
  Coverage   72.33%   72.33%           
=======================================
  Files          88       88           
  Lines        1916     1916           
  Branches      245      245           
=======================================
  Hits         1386     1386           
  Misses        474      474           
  Partials       56       56           

@DarshitChanpura DarshitChanpura merged commit ede8359 into opensearch-project:1.x Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants