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

test(api): scenario-features: pre-gap data formatting & enable spec #259

Merged
merged 1 commit into from
Jun 16, 2021

Conversation

kgajowy
Copy link
Contributor

@kgajowy kgajowy commented Jun 10, 2021

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

@vercel
Copy link

vercel bot commented Jun 10, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

marxan – ./app

🔍 Inspect: https://vercel.com/vizzuality1/marxan/A8pxg619xtC32rmKbLaivjVn5JMc
✅ Preview: https://marxan-git-api-marxan-289-enable-specs-vizzuality1.vercel.app

marxan-storybook – ./app

🔍 Inspect: https://vercel.com/vizzuality1/marxan-storybook/6tzUNrwC8iedGiTfYACzHDyWP8vv
✅ Preview: https://marxan-storybook-git-api-marxan-289-enable-specs-vizzuality1.vercel.app

@@ -127,10 +127,10 @@ export class ScenarioFeaturesService extends AppBaseService<
...base,
onTarget: metArea >= totalArea * targetPct,
met: +((metArea / totalArea) * 100).toFixed(2),
metArea,
metArea: +metArea.toFixed(2),
Copy link
Contributor

@Dyostiq Dyostiq Jun 10, 2021

Choose a reason for hiding this comment

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

not sure how accurate rounding we need, but keep in mind that

1.55.toFixed(1) // 1.6
1.555.toFixed(2) // 1.55

@kgajowy kgajowy merged commit b71aa2b into develop Jun 16, 2021
@kgajowy kgajowy deleted the api/MARXAN-289-enable-specs branch June 16, 2021 05:49
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.

3 participants