-
Notifications
You must be signed in to change notification settings - Fork 4
parameterize office id from the client #590
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
Merged
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
b42ec2f
add delegating data source - initial commit
adamkorynta ae88c84
parameterize orgainzation (office) id from the client to the REST API
adamkorynta 9bb3262
allow the client to choose an organization id in the login prompt
adamkorynta 5dc5b76
add organization selector to allow clients to change organizations wi…
adamkorynta 99a74c5
cleanup order of operations so that excessive invalid requests aren't…
adamkorynta df151d6
revert changes
adamkorynta 5398667
cache changes to platform ref in attempt to speedup performance
adamkorynta cd2f472
Update opendcs-web-client/src/main/webapp/WEB-INF/common/header.jspf
adamkorynta e2d460d
Merge remote-tracking branch 'refs/remotes/origin/main' into feature/…
adamkorynta 0c0060d
Merge remote-tracking branch 'refs/remotes/origin/main' into feature/…
adamkorynta 021c60b
more updates from review
adamkorynta 057eebd
fix jstl references for jakarta update
adamkorynta 5eb1b27
Merge remote-tracking branch 'origin/main' into feature/client_office_id
adamkorynta b7dabb8
code review updates
adamkorynta 72b4932
more updates from feedback
adamkorynta 9b2b397
update status text
adamkorynta a468031
Merge remote-tracking branch 'refs/remotes/origin/main' into feature/…
adamkorynta 86ecaf8
remove loginTest as it isn't hooked into integration test system
adamkorynta f374f1b
update organizations to include extra metadata
adamkorynta 001b5bd
cleanup for defaulting to HQ organization
adamkorynta 271a701
refactor session office prepare to cwms
adamkorynta 0d19ab4
cleanup opentsdb tests
adamkorynta 7af924a
cleanup organization openapi test
adamkorynta df85b6d
fixing CWMS tests
adamkorynta ca1e752
add org header to swagger page
adamkorynta c91eb89
fix typo
adamkorynta d9d0404
Update opendcs-rest-api/src/main/java/org/opendcs/odcsapi/dao/cwms/Cw…
adamkorynta 9c57a9b
sonar updates
adamkorynta 374fb48
fix typo
adamkorynta 6e332bc
cleanup css form and replace some `window` with `globalThis`
adamkorynta File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
...cs-integration-test/src/test/java/org/opendcs/odcsapi/res/it/OrganizationResourcesIT.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| /* | ||
| * Copyright 2025 OpenDCS Consortium and its Contributors | ||
| * | ||
| * Licensed under the Apache License, Version 2.0 (the "License") | ||
| * you may not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
|
|
||
| package org.opendcs.odcsapi.res.it; | ||
|
|
||
|
|
||
| import io.restassured.filter.log.LogDetail; | ||
| import jakarta.servlet.http.HttpServletResponse; | ||
| import jakarta.ws.rs.core.MediaType; | ||
| import org.junit.jupiter.api.Tag; | ||
| import org.junit.jupiter.api.TestTemplate; | ||
| import org.junit.jupiter.api.extension.ExtendWith; | ||
| import org.opendcs.odcsapi.fixtures.DatabaseContextProvider; | ||
|
|
||
| import static io.restassured.RestAssured.given; | ||
| import static org.hamcrest.Matchers.hasItem; | ||
| import static org.hamcrest.Matchers.is; | ||
|
|
||
| @Tag("integration-cwms-only") | ||
| @ExtendWith(DatabaseContextProvider.class) | ||
| final class OrganizationResourcesIT extends BaseIT | ||
| { | ||
|
|
||
| @TestTemplate | ||
| void getAlgorithmRefs() | ||
| { | ||
| given() | ||
| .log().ifValidationFails(LogDetail.ALL, true) | ||
| .accept(MediaType.APPLICATION_JSON) | ||
| .when() | ||
| .redirects().follow(true) | ||
| .redirects().max(3) | ||
| .get("organizations") | ||
| .then() | ||
| .log().ifValidationFails(LogDetail.ALL, true) | ||
| .assertThat() | ||
| .statusCode(is(HttpServletResponse.SC_OK)) | ||
| .body("name", hasItem("SPK")) | ||
| ; | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.