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

Upgrade csp to perspective 3.x #392

Merged
merged 2 commits into from
Nov 19, 2024
Merged

Upgrade csp to perspective 3.x #392

merged 2 commits into from
Nov 19, 2024

Conversation

ptomecek
Copy link
Collaborator

@ptomecek ptomecek commented Nov 15, 2024

Many thanks to @sinistersnare for #370 which I relied on heavily for this PR.
Some key differences from that PR are:

  • Backwards compatibility for previous versions
  • Take advantage of new to_dataframe function on the view
  • Added perspective to automated testing by including it as a test dependency
  • Disable localize option that allows for local timestamps in perspective, as it doesn't make sense on perspective 3.

I have explicitly checked that the tests pass under versions 2.10.1 and 3.1.4

Copy link
Member

@timkpaine timkpaine left a comment

Choose a reason for hiding this comment

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

I have explicitly checked that the tests pass under versions 2.10.1 and 3.1.4

We have a spot for dependency version checks, lets add this there

@timkpaine timkpaine self-requested a review November 15, 2024 19:26
.github/workflows/build.yml Outdated Show resolved Hide resolved
timkpaine
timkpaine previously approved these changes Nov 16, 2024
Copy link
Collaborator

@AdamGlustein AdamGlustein left a comment

Choose a reason for hiding this comment

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

Minor feedback. I'm not too familiar with the actual Perspective 3.0 API changes but I'll accept @timkpaine 's approval on those.

csp/adapters/perspective.py Show resolved Hide resolved
csp/impl/pandas_perspective.py Outdated Show resolved Hide resolved
csp/impl/pandas_perspective.py Outdated Show resolved Hide resolved
csp/impl/pandas_perspective.py Outdated Show resolved Hide resolved
Signed-off-by: Pascal Tomecek <pascal.tomecek@cubistsystematic.com>
Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
@ptomecek ptomecek force-pushed the pit/psp3 branch 4 times, most recently from 3651e42 to d86de08 Compare November 18, 2024 22:53
csp/impl/perspective_common.py Outdated Show resolved Hide resolved
csp/impl/perspective_common.py Outdated Show resolved Hide resolved
csp/impl/perspective_common.py Outdated Show resolved Hide resolved
@ptomecek ptomecek force-pushed the pit/psp3 branch 2 times, most recently from d0641ea to e0a1277 Compare November 19, 2024 13:13
Signed-off-by: Pascal Tomecek <pascal.tomecek@cubistsystematic.com>
@AdamGlustein AdamGlustein self-requested a review November 19, 2024 18:56
@ptomecek ptomecek merged commit 25c2b67 into main Nov 19, 2024
29 checks passed
@ptomecek ptomecek deleted the pit/psp3 branch November 19, 2024 19:24
@timkpaine timkpaine added type: enhancement Issues and PRs related to improvements to existing features adapter: perspective Issues and PRs related to our Perspective adapter labels Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adapter: perspective Issues and PRs related to our Perspective adapter type: enhancement Issues and PRs related to improvements to existing features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants