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

Fixes missing min/max update for default CostSurface metadata for non shapefile based Projects [MRXN23-522] #1599

Conversation

KevSanchez
Copy link
Collaborator

Substitute this line for a meaningful title for your changes

Overview

Please write a description. If the PR is hard to understand, provide a quick explanation of the code.

Designs

Link to the related design prototypes (if applicable)

Testing instructions

Please explain how to test the PR: ID of a dataset, steps to reach the feature, etc.

Feature relevant tickets

Link to the related task manager tickets


Checklist before submitting

  • Meaningful commits and code rebased on develop.
  • If this PR adds feature that should be tested for regressions when
    deploying to staging/production, please add brief testing instructions
    to the deploy checklist (docs/deployment-checklist.md)
  • Update CHANGELOG file

Copy link

vercel bot commented Nov 23, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
marxan ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 27, 2023 2:57pm

@KevSanchez KevSanchez requested a review from hotzevzl November 23, 2023 16:08
@KevSanchez KevSanchez force-pushed the fix/api/MRXN23-522-min-max-values-on-default-cost-surfaces-for-non-shapefile-based-projects branch from 8fbafdf to c9f1433 Compare November 24, 2023 17:00
Copy link
Member

@hotzevzl hotzevzl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KevSanchez thank you, and great job on the cleanup of the test fixtures 🚀

It's ready to go - just have a look at the two notes about added exports that don't seem to be needed, probably some leftovers of IDE trying to be useful.


type CustomPlanningAreaJob = Required<
export type CustomPlanningAreaJob = Required<
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tiny: why the added export? I don't see this type used anywhere else (maybe an IDE overzealousness added this?)

@@ -2,10 +2,13 @@ import * as faker from 'faker';
import { PlanningUnitsJob } from '@marxan-jobs/planning-unit-geometry';
import { PlanningUnitGridShape } from '@marxan/scenarios-planning-unit';

interface OptionsWithCountryCode {
export interface OptionsWithCountryCode {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as for the other export above - not really an issue, but this interface isn't used elsewhere other than in this file

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, it's not really needed. I think at some point while I was developing I needed both in an earlier iteration, but forgot about it. Good catch!

@KevSanchez KevSanchez force-pushed the fix/api/MRXN23-522-min-max-values-on-default-cost-surfaces-for-non-shapefile-based-projects branch from c9f1433 to 6e55523 Compare November 27, 2023 14:55
@KevSanchez KevSanchez merged commit f580e91 into develop Nov 27, 2023
60 checks passed
@KevSanchez KevSanchez deleted the fix/api/MRXN23-522-min-max-values-on-default-cost-surfaces-for-non-shapefile-based-projects branch November 27, 2023 16:33
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