Skip to content

Allow upload of DIVE json.#1014

Merged
subdavis merged 4 commits into
mainfrom
bugfix/track_upload
Nov 2, 2021
Merged

Allow upload of DIVE json.#1014
subdavis merged 4 commits into
mainfrom
bugfix/track_upload

Conversation

@subdavis
Copy link
Copy Markdown
Contributor

@subdavis subdavis commented Oct 22, 2021

fixes #1012

Adds new integration tests.

@subdavis subdavis requested a review from BryonLewis October 22, 2021 20:27
@subdavis subdavis marked this pull request as draft October 22, 2021 20:34
@subdavis subdavis removed the request for review from BryonLewis October 22, 2021 20:34
@subdavis subdavis requested a review from BryonLewis November 1, 2021 14:21
@subdavis subdavis marked this pull request as ready for review November 1, 2021 14:21
@subdavis subdavis requested a review from marySalvi November 1, 2021 14:21
BryonLewis
BryonLewis previously approved these changes Nov 1, 2021
Copy link
Copy Markdown
Collaborator

@BryonLewis BryonLewis left a comment

Choose a reason for hiding this comment

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

Fixes the issue so that track.json files are properly uploaded. Also extracted and uploaded configuration file and they seem to be working properly as well. Just one question about the is_dive_configuration function.

Comment thread server/dive_utils/models.py Outdated
Comment on lines +106 to +110
for key in [
'customTypeStyling',
'confidenceFilters',
'attributes',
]
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Just a question, could this use a Model Attribute instead of duplication of the fields? Popping version off the field keys and then doing an any? Would prevent duplicating the list in two places if more info is added in the future?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good idea, done in 1c38334

Copy link
Copy Markdown
Collaborator

@BryonLewis BryonLewis left a comment

Choose a reason for hiding this comment

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

pulled, built and tested again.

@subdavis subdavis merged commit 3ab76b5 into main Nov 2, 2021
@subdavis subdavis deleted the bugfix/track_upload branch November 2, 2021 16:43
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.

[BUG] Track.json Import Fails on Web

2 participants