Skip to content

Folder structure: Moved email and auth packages under api package for consistency - #127

Open
Allimonae wants to merge 1 commit into
matches-uifrom
backend-folder-structure
Open

Allimonae wants to merge 1 commit into
matches-uifrom
backend-folder-structure

Conversation

@Allimonae

@Allimonae Allimonae commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

Move auth and email packages under api

The auth and email packages now live under org.patinanetwork.patchats.api, next to the existing api.member package. This puts every feature area in the same place.

What moved

  • org.patinanetwork.patchats.auth (controller, service, token generator, rate limiter, exceptions, DTOs, repos, and the security subpackage) is now org.patinanetwork.patchats.api.auth.
  • org.patinanetwork.patchats.email (controller, enqueue/drainer/progress/template services, sender implementations, renderers, DTOs, and the db models and repos) is now org.patinanetwork.patchats.api.email.
  • The matching test classes moved with them. The email request mock JSON files now sit in src/test/java/.../api/email/mocks.

Code touched by the move

  • Classes outside these packages that import from them now use the new paths. These are MemberController, MemberControllerTest, and ApiExceptionHandler, which imports the auth exceptions.
  • SecurityWiringTest and the other tests import from the new locations.
  • Import blocks were re-sorted to keep the original alphabetical ordering.

Docs

  • File paths and links in docs/auth-feature.md, docs/email-feature.md, and the docs/email-async/* pages now point to the new locations. This includes the mock-JSON directory referenced in the SendEmailRequest Javadoc.

Notes for reviewers

  • Only package names, imports, and file locations changed. No runtime behavior, endpoints, or logic were altered. Git should show these as renames, so use rename detection when reviewing.
  • Any open branches that touch auth or email files will need to rebase and update their imports.

Allimonae commented Oct 6, 2026 •

Copy link
Copy Markdown
Member Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@Allimonae
Allimonae force-pushed the backend-folder-structure branch 2 times, most recently from fa1bd6e to 471397d Compare October 6, 2026 17:16
@Allimonae
Allimonae marked this pull request as ready for review October 6, 2026 17:19
@Allimonae
Allimonae force-pushed the backend-folder-structure branch from 471397d to 28abbef Compare October 6, 2026 17:39
@Allimonae
Allimonae force-pushed the backend-folder-structure branch from 28abbef to dcbe8fd Compare October 6, 2026 21:07
@Allimonae
Allimonae force-pushed the backend-folder-structure branch 2 times, most recently from fd089b7 to 04e150f Compare October 9, 2026 14:42
@Allimonae
Allimonae force-pushed the matches-ui branch 2 times, most recently from b907006 to 767d624 Compare October 9, 2026 14:52
@Allimonae
Allimonae force-pushed the backend-folder-structure branch from 04e150f to 283581b Compare October 9, 2026 14:52
@Allimonae
Allimonae changed the base branch from matches-ui to graphite-base/127 October 9, 2026 15:07
@Allimonae
Allimonae force-pushed the backend-folder-structure branch from 283581b to 4bc6234 Compare October 16, 2026 22:02
@Allimonae
Allimonae changed the base branch from graphite-base/127 to matches-ui October 16, 2026 22:02
@Allimonae
Allimonae force-pushed the backend-folder-structure branch from 4bc6234 to fc5cf0c Compare October 16, 2026 22:23
@coderabbitai

coderabbitai Bot commented Oct 26, 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
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: cd2cf146-0e76-42a1-aada-1e09f1fae44d

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
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@sonarqubecloud

Copy link
Copy Markdown

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.

2 participants