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

Ess-3110 Not all fields are mapped when getting a campaign #42

Conversation

pamela-joslyn-4ss
Copy link
Contributor

@pamela-joslyn-4ss pamela-joslyn-4ss commented Nov 22, 2024

This PR is related to user story https://4insight.atlassian.net/browse/ESS-3110) and https://4insight.atlassian.net/browse/ESS-3038

Description

Map all fields on get_campaign
Also fixed bug ESS_3038 get_swimops_campaign does not return gracefully if no operations

Checklist

  • PR title is descriptive and fit for injection into release notes (see tips below)
  • Correct label(s) are used

@bjorn-einar-bjartnes-4ss
Copy link
Contributor

bjorn-einar-bjartnes-4ss commented Nov 22, 2024

We have to fix

  • ✅styling issues
  • Make sure with tests it handles non-swim as well as swim campaigns.
  • Fix failing tests

@hakon-molven-4ss
Copy link
Contributor

We have to fix

  • styling issues
  • Make sure with tests it handles non-swim as well as swim campaigns.

I snuck in and fixed the style by running black . and isort . --profile black with the latest black and isort installed. Sneaking back out...

@@ -278,6 +287,15 @@ def test_get_campaign_camelcase(
"Main Data Provider": "4Subsea",
"Start Date": "2017-04-08T00:00:00+00:00",
"End Date": "2017-05-13T00:00:00+00:00",
"GeoTrack Location": "10#21",
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't know why it needs all these, I assume they have been added to the API without the package having been built and therefore we do not pick up errors in integration tests. Perhaps we should run these tests when we deploy 4insight, or at least at some intervals to stay up to date on changes...

@bjorn-einar-bjartnes-4ss bjorn-einar-bjartnes-4ss merged commit 2cf4c78 into main Nov 25, 2024
9 checks passed
@bjorn-einar-bjartnes-4ss bjorn-einar-bjartnes-4ss deleted the ESS-3110-Not-all-fields-are-mapped-when-getting-a-campaign branch November 25, 2024 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug fixes
Development

Successfully merging this pull request may close these issues.

3 participants