-
Notifications
You must be signed in to change notification settings - Fork 5
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
use cost-surfaces
as part of path for cost surface-related endpoints (rather than cost-surface
) [MRXN23-479] [MRXN23-480]
#1541
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
a347b35
to
2e58a58
Compare
73bd0e9
to
3a43199
Compare
@Req() req: RequestWithAuthenticatedUser, | ||
@Body() dto: UploadShapefileDto, | ||
): Promise<JsonApiAsyncJobMeta> { | ||
const outcome = await this.projectsService.addProtectedAreaFor( |
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.
just a question/suggestion - maybe move the addProtedtedAreaFor() to ProjectProtectedAreasService.. its basically just doing the file validation and acl though and then passes to AddProtectedAreaService, so maybe not worth it.. but being inspired by this nice cleanup, feels a bit like there are too much services involved in project protected areas
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.
yep, it does make sense, but then we enter the rabbit hole of cleaning up ProjectsService which is another sprawling chaos, and... I'd rather stop at the controller layer for this PR 😬
cost-surfaces
as part of path for cost surface-related endpoints (rather than cost-surface
) [MRXN23-479]cost-surfaces
as part of path for cost surface-related endpoints (rather than cost-surface
) [MRXN23-479] [MRXN23-480]
…d OpenAPI category
…and OpenAPI category
…nd OpenAPI category
…er and OpenAPI category
…roller and OpenAPI category
…n their own controller and OpenAPI category
…troller and OpenAPI category
3a43199
to
905d98f
Compare
This was long overdue - I should have done this while splitting the sprawling blob of monolithing e2e runs into subsets, but well, better now than never. Project-related tests within API e2e tests were among the longest-running, and the split by concern in this commit should make each subset more manageable (for example, leading to shorter run times if needing to trigger a new run of a subset manually because of spurious failures in CI).
905d98f
to
c8dd035
Compare
see https://vizzuality.atlassian.net/browse/MRXN23-479