Skip to content
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

Refactor campaign handling #148

Open
11 tasks
davdarras opened this issue Jun 13, 2024 · 0 comments
Open
11 tasks

Refactor campaign handling #148

davdarras opened this issue Jun 13, 2024 · 0 comments
Assignees

Comments

@davdarras
Copy link
Contributor

davdarras commented Jun 13, 2024

Refactor campaign package handling:

  • Referent
  • Campaign
  • Visibility
  • Preferences
  • User
  • Organizational Unit

Checks

  • adapt archunit
  • lombok usage
  • unit tests
  • control input data
  • integration tests
    • check usage
    • in separate classes and independant
    • refactor
    • add integration tests when necessary
  • exception handling
  • documentation

Example structure:

pearl-jam-back-office
├── src
│   ├── main
│   │   ├── java
│   │   │   └── fr
│   │   │       └── insee
│   │   │           └── pearljam
│   │   │               ├── application
│   │   │               │   ├── config        
│   │   │               │   │   └── SecurityConfig.java
│   │   │               │   └── controller    
│   │   │               │        ├── campaign  
│   │   │               │        │   ├── CampaignController.java
│   │   │               │        │   ├── OrganizationUnitController.java
│   │   │               │        │   └── dto     
│   │   │               │        │        ├── in
│   │   │               │        │        └── out
│   │   │               │        │            ├── OrganizationUnitDTO.java
│   │   │               │        │            └── CampaignDTO.java
│   │   │               │        └── questionnaire 
│   │   │               │            ├── QuestionnaireController.java
│   │   │               │            └── dto           
│   │   │               │                 └── QuestionnaireDTO.java
│   │   │               ├── domain
│   │   │               │   ├── campaign  
│   │   │               │   │   ├──  model
│   │   │               │   │   │   ├── Campaign.java
│   │   │               │   │   │   └── OrganizationalUnit.java
│   │   │               │   │   ├──  service
│   │   │               │   │   │   ├── CampaignDomainService.java (implements CampaignService)
│   │   │               │   │   │   └── OrganizationalUnitDomainService.java (implements OrganizationalUnitService)
│   │   │               │   │   └──  port
│   │   │               │   │       ├──  userside
│   │   │               │   │       │   ├── OrganizationalService.java
│   │   │               │   │       │   └── CampaignService.java
│   │   │               │   │       └──  serverside
│   │   │               │   │           ├── OrganizationalUnitPort.java
│   │   │               │   │           └── CampaignPort.java
│   │   │               │   └── questionnaire  
│   │   │               │       ├──  model
│   │   │               │       ├──  service
│   │   │               │       └──  port
│   │   │               └── infrastructure
│   │   │                   ├── persistence   
│   │   │                   │   ├── campaign  
│   │   │                   │   │   ├── adapter
│   │   │                   │   │   │   ├── OrganizationalUnitAdapter.java (implements OrganizationalUnitAdapter)
│   │   │                   │   │   │   └── CampaignAdapter.java (implements CampaignPort)
│   │   │                   │   │   ├── repository
│   │   │                   │   │   │   ├── OrganizationalUnitRepository.java
│   │   │                   │   │   │   └── CampaignRepository.java
│   │   │                   │   │   └── entity
│   │   │                   │   │       └── CampaignDB.java
│   │   │                   │   └── questionnaire 
│   │   │                   │       ├── repository
│   │   │                   │       │   └── QuestionnaireRepository.java
│   │   │                   │       └── entity
│   │   │                   │           └── QuestionnaireDB.java
│   │   │                   └── security      
│   │   └── resources
│   │      └── application.properties
│   └── test
│       ├── java
│       │   └── fr
│       │       └── insee
│       │           └── pearljam
│       │               ├── application
│       │               │   └── controller    
│       │               │        └── campaign  
│       │               │            └── CampaignControllerTest.java
│       │               ├── domain
│       │               └── infrastructure
│       └── resources
├── pom.xml
└── README.md
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

No branches or pull requests

2 participants