Refactor: Move auth-related files into com.medtrack.auth package (feature-based structure)
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 25/100
- Type d'issue
- Refactorisation
- Clarté
- Plutôt claire
- Activité
- Calme
- Stack technique
- java, spring-boot
- Domaine
- authentication, backend
Piste de recherche
The issue lists nine auth files to move into a com.medtrack.auth package: UserController, UserService, User, UserRepository, LoginRequest, AuthResponse, JwtUtil, JwtAuthFilter and SecurityConfig. It also names HospitalService and DataInitializer as importers to update. Done means the project builds with mvn clean install and the register and login endpoints still respond. The issue describes a MedTrack backend that does not match this repository, so confirm the target code exists before starting.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Currently all backend files are organized layer-wise (controller/, service/, model/, repository/, etc.), mixing all members' code together in the same top-level packages.
This PR moves all Member 1 (Auth & Security) files into a dedicated auth package with its own internal layer structure, for better modularity:
com.medtrack.auth/
├── controller/ → UserController.java
├── service/ → UserService.java
├── model/ → User.java
├── repository/ → UserRepository.java
├── dto/ → LoginRequest.java, AuthResponse.java
├── security/ → JwtUtil.java, JwtAuthFilter.java
└── config/ → SecurityConfig.java
Changes made:
Moved 9 files from com.medtrack.{model,repository,dto,service,controller,security,config} → com.medtrack.auth.*
Updated package declarations in all moved files
Updated internal imports within the auth package
Fixed external imports in files that reference User.java / UserRepository.java / JwtUtil.java / JwtAuthFilter.java / SecurityConfig.java:
HospitalService.java — import com.medtrack.model.User; → import com.medtrack.auth.model.User;
DataInitializer.java — same User import updated
No functional/logic changes — this is a pure package reorganization. No API endpoints, URLs, or request/response formats are affected.
Frontend impact: None. All @RequestMapping / @PostMapping URL paths remain unchanged (/api/user/register, /api/user/login), so AuthService.js and HttpService.js require no changes.
Verification:
Project builds clean (mvn clean install)
All existing endpoints tested (register, login)
No broken imports across other members' files
Note for team: If anyone is currently working on a branch that imports com.medtrack.model.User or other moved classes, please pull latest and update your imports to com.medtrack.auth.* accordingly before merging your own PR, to avoid conflicts.
- Langage dominant
- Java
- Étoiles
- 6
- Forks
- 22
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de harness/ff-java-server-sdk
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 18/100
harness/ff-java-server-sdk#216 ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 30/100
harness/ff-java-server-sdk#212 ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
harness/ff-java-server-sdk#142 ·
Toutes les issues de harness/ff-java-server-sdk
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
NucleusFramework/Nucleus#1020 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 83/100
ajeetraina/awesome-docker-sbx#839 ·
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
portfolio-performance/portfolio#6459 ·
Les mainteneurs répondent en général sous 2 jours
-
Bug
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
bufbuild/protovalidate-java#564 · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 83/100
it-at-m/traegerportal#17 ·