Skip to content

PR5/15: pic-sure-operations-service#264

Merged
Gcolon021 merged 24 commits into
api_rewrite_stablefrom
psar/05-operations-service
Jul 16, 2026
Merged

PR5/15: pic-sure-operations-service#264
Gcolon021 merged 24 commits into
api_rewrite_stablefrom
psar/05-operations-service

Conversation

@Gcolon021

Copy link
Copy Markdown
Contributor

DB-backed config/dataset/internal-query API and the migrated pic-sure-api-data entities. Depends on spring-commons; tests use embedded H2. 106 tests.


📚 Stacked PR series (1–7) — part of decomposing the pic_sure_api_rewrite monorepo rewrite into sequential, independently-green PRs. Review and merge bottom-up (this PR's base is the PR below it; GitHub auto-retargets to main as each merges). Every PR builds + tests green on its own under JDK 25.

JamesPeck and others added 9 commits March 3, 2026 12:35
* Refactor LoggingClient to use Sender interface

* Refactor LoggingClient to use config in JdkHttpSender

* Add Sender interface for logging functionality

* Implement JdkHttpSender for asynchronous HTTP requests

* Add NoOpSender class for logging

* Refactor LoggingClientTest for clarity and safety

* Refactor test method signatures for consistency
* add package wf

* Format

* Add wf files

Update README.md
@coderabbitai

coderabbitai Bot commented Jul 10, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: c30b19f2-8b61-42d2-836a-03a77a001b91

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch psar/05-operations-service

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Gcolon021 Gcolon021 changed the title PR5/7: pic-sure-operations-service PR5/14: pic-sure-operations-service Jul 11, 2026
@Gcolon021 Gcolon021 self-assigned this Jul 14, 2026
@Gcolon021 Gcolon021 added the enhancement New feature or request label Jul 14, 2026
@Gcolon021
Gcolon021 marked this pull request as ready for review July 14, 2026 15:28
}
}

private static PicsureException notFound(UUID id) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think these should be moved out to class that can be reused.

*/
@RestController
@RequestMapping("/internal/queries")
public class InternalQueryController {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Intended to not be publicly available. Request from the hpds-query-service are sent here.

* before this method runs, so this is a defensive guard against a gateway that authenticated the caller (sent {@code X-User-Id}) but
* omitted {@code X-User-Email} -- not the primary auth gate.
*/
private String requireEmail(GatewayUser user) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

belongs in the service layer

return repo.findByName(identifier).stream().findFirst();
}

private static PicsureException notFound(String identifier) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Move to shared dedicate class

@Gcolon021
Gcolon021 force-pushed the psar/05-operations-service branch from 2d8a648 to 0fe9f95 Compare July 14, 2026 18:09
@Gcolon021 Gcolon021 changed the title PR5/14: pic-sure-operations-service PR5/15: pic-sure-operations-service Jul 14, 2026
@Gcolon021
Gcolon021 changed the base branch from psar/04-gateway to api_rewrite_stable July 16, 2026 18:49
@coderabbitai

coderabbitai Bot commented Jul 16, 2026

Copy link
Copy Markdown

Caution

Review failed

An error occurred during the review process. Please try again later.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch psar/05-operations-service

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Gcolon021
Gcolon021 merged commit b4fc51b into api_rewrite_stable Jul 16, 2026
4 checks passed
Gcolon021 added a commit that referenced this pull request Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants