Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add tests for the keys that should be skipped in base64 conversion #4727

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

Merged
marthacryan merged 10 commits into pass-b64 from add-skipped-key-tests
Aug 30, 2024

Conversation

@marthacryan
Copy link
Collaborator

@marthacryan marthacryan commented Aug 23, 2024
edited
Loading

Adds tests for #4470 to test that certain keys are not being converted to the { base64, dtype } object. These keys were found here. Geojson shouldn't be converted because it would then be an invalid geojson object.

@marthacryan marthacryan changed the title (削除) Add test for geojson not converting to b64 (削除ここまで) (追記) Add tests for the base64 keys that are skipped in conversion (追記ここまで) Aug 23, 2024
@marthacryan marthacryan changed the title (削除) Add tests for the base64 keys that are skipped in conversion (削除ここまで) (追記) Add tests for the keys that are skipped in base64 conversion (追記ここまで) Aug 23, 2024
@gvwilson gvwilson added feature something new P1 needed for current cycle testing automated tests labels Aug 26, 2024
@archmoj archmoj changed the title (削除) Add tests for the keys that are skipped in base64 conversion (削除ここまで) (追記) Add tests for the keys that should be skipped in base64 conversion (追記ここまで) Aug 28, 2024

if is_none_or_typed_array_spec(v):
pass
elif 'layer' in self.parent_name or 'range' in self.parent_name or 'geojson' in self.parent_name:
Copy link
Contributor

Choose a reason for hiding this comment

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

This is great!
Any change to refactor it?
Are there any other data types that we need to put this condition in specially for ranges?

Copy link
Collaborator Author

@marthacryan marthacryan Aug 30, 2024

Choose a reason for hiding this comment

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

Any change to refactor it?

Just pushed a change! Let me know if you have naming or other refactoring suggestions :)

Are there any other data types that we need to put this condition in specially for ranges?

So, this is the only place that calls to_typed_array_spec, so I think that should cover any conversions that are happening. Does that answer your question?

archmoj reacted with thumbs up emoji
Copy link
Contributor

Choose a reason for hiding this comment

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

Exactly.


fig = go.Figure(data=data, layout=layout)

# TODO: This is failing because the actual value of the "dash" field
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove this to do if it is done.

Copy link
Contributor

@archmoj archmoj left a comment

Choose a reason for hiding this comment

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

Excellent PR and bug fix.
💃

@marthacryan marthacryan merged commit 02fb3a4 into pass-b64 Aug 30, 2024
@marthacryan marthacryan deleted the add-skipped-key-tests branch August 30, 2024 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer

@archmoj archmoj archmoj approved these changes

Reviewers whose approvals may not affect merge requirements

Labels

feature something new P1 needed for current cycle testing automated tests

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /