-
Notifications
You must be signed in to change notification settings - Fork 17
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
BC - 4655 migration-of-federal-states #4385
Conversation
apps/server/src/modules/federal-state/service/federal-state.service.ts
Outdated
Show resolved
Hide resolved
createdAt: new Date(2020, 1), | ||
updatedAt: new Date(2020, 1), | ||
}; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above (DoFactory) - should be unique, or?
apps/server/src/modules/federal-state/entity/federal-state.entity.ts
Outdated
Show resolved
Hide resolved
@Module({ | ||
imports: [FederalStateModule], | ||
controllers: [FederalStateController], | ||
providers: [FederalStateUC], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure this is ok...
…tes' into BC-4655-migration-of-federal-states
apps/server/src/modules/federal-state/controller/dto/create-county.body.params.ts
Outdated
Show resolved
Hide resolved
apps/server/src/modules/federal-state/controller/dto/federal-state.response.ts
Outdated
Show resolved
Hide resolved
return federalStateResponse; | ||
} | ||
|
||
@Post() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ApiResponse missing
apps/server/src/modules/federal-state/controller/mapper/federal-state.mapper.ts
Outdated
Show resolved
Hide resolved
apps/server/src/modules/federal-state/controller/mapper/federal-state.mapper.ts
Outdated
Show resolved
Hide resolved
apps/server/src/modules/federal-state/repo/federal-state.repo.ts
Outdated
Show resolved
Hide resolved
const createdFederalState = await this.federalStateService.create(federalStateCreate); | ||
return createdFederalState; | ||
} | ||
|
||
// TODO: names could be an enum | ||
async findFederalStateByName(name: string) { | ||
const federalState = await this.federalStateService.findFederalStateByName(name); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no authorization here?
TODO: entity <-> county pagination - why is that necesary? findFederalStateByName - how was that called? was in feathers, but how is used |
Description
PR will execute the migration from feathers to nestJs regarding FederalState.
Links to Tickets or other pull requests
BC-4655
Changes
FederalStates will be available through "/api/v3/federal-states". The old federal state feathers path is still used.
In a follow up ticket federalStates will no longer be available through the "/federalStates" route, but instead through "/api/v3/federal-states".
This has to be deleted in the follow up:
https://github.com/hpi-schul-cloud/schulcloud-server/tree/main/src/services/federalState
any reference to it from client, must be changed to the new v3 path
any reference to it from server, must somehow load nestjs service instead. Example https://github.com/hpi-schul-cloud/schulcloud-server/blob/main/src/services/sync/strategies/TSP/TSPBaseSyncer.js#L186
Datasecurity
Deployment
New Repos, NPM pakages or vendor scripts
Approval for review
generate-client:server
was executed in vue frontend and changes were tested and put in a PR with the same branch name.