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

Minimum PostHog version in plugins #3916

Merged
merged 19 commits into from
Apr 9, 2021
Merged

Conversation

mariusandra
Copy link
Collaborator

Changes

Checklist

  • All querysets/queries filter by Organization, by Team, and by User
  • Django backend tests
  • Jest frontend tests
  • Cypress end-to-end tests

@mariusandra mariusandra requested a review from Twixes April 8, 2021 16:10
@timgl timgl temporarily deployed to posthog-pr-3916 April 8, 2021 16:18 Inactive
@Twixes Twixes temporarily deployed to posthog-pr-3916 April 8, 2021 17:15 Inactive
@Twixes Twixes temporarily deployed to posthog-pr-3916 April 8, 2021 17:41 Inactive
@Twixes Twixes temporarily deployed to posthog-pr-3916 April 8, 2021 18:11 Inactive
@Twixes Twixes temporarily deployed to posthog-pr-3916 April 8, 2021 18:31 Inactive
@mariusandra
Copy link
Collaborator Author

👍 for the changes! What happened with the tests though?

@Twixes Twixes temporarily deployed to posthog-pr-3916 April 8, 2021 21:04 Inactive
@Twixes Twixes temporarily deployed to posthog-pr-3916 April 8, 2021 21:15 Inactive
@Twixes Twixes temporarily deployed to posthog-pr-3916 April 8, 2021 21:23 Inactive
@Twixes Twixes temporarily deployed to posthog-pr-3916 April 8, 2021 21:28 Inactive
@Twixes Twixes temporarily deployed to posthog-pr-3916 April 8, 2021 21:33 Inactive
@Twixes Twixes temporarily deployed to posthog-pr-3916 April 8, 2021 22:10 Inactive
Copy link
Collaborator

@Twixes Twixes left a comment

Choose a reason for hiding this comment

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

Ah, sorry for the mess, here's a comment most of which I wanted to post earlier but forgot 😅

Good solution. 👍
I split the single test of this into multiple ones for granularity.
Also disabled this check on Cloud as Cloud's always on the edge. Does this looks right to you?
As for Cloud CI job, it was red because the new package wasn't installed when it'd normally be due to the way the job was set up (as it also ensures that the PR will result in a safe migration in prod). I also had to fiddle with pip install caching there, as it was causing weird behavior. Ended up removing actions/cache in that job for now, it's only a difference of ~30 seconds.
BTW it's interesting that there are practically two competing PyPI packages for semver, previously I looked at https://pypi.org/project/semver/ for this. Wonder what's the difference.

@mariusandra
Copy link
Collaborator Author

Cool! All changes do make sense to me, so merging.

Regarding the two projects (semver vs the one used here), I think semver didn't have a good support for version ranges/specifications. Thus I decided to use the other one.

@mariusandra mariusandra merged commit 1d2f9bf into master Apr 9, 2021
@mariusandra mariusandra deleted the plugins-posthog-min-version branch April 9, 2021 07:04
fuziontech pushed a commit that referenced this pull request Apr 19, 2021
…o 3765-cohort-by-trend

* '3765-cohort-by-trend' of github.com:PostHog/posthog: (39 commits)
  'string, parsable as datetime' (#3942)
  Update plugin server to 0.16.3 (#3944)
  Resizable table columns in Sessions (#3927)
  bump cryptography==3.4.7 and add macosx_arm64 install script (#3935)
  🤖: Add jeduden as a contributor 🎉 (#3938)
  Fix feature flags default rollout (#3745)
  Less dancing in dashboards (#3824)
  Always show event stats and add warnings (#3908)
  Update plugin server to 0.16.2 (#3932)
  Minimum PostHog version in plugins (#3916)
  Renames Active users to Unique users (#3930)
  Fix action with same name (#3909)
  Fix navigation to insights from dashboards (#3928)
  User V2 Part II - Frontend changes (#3866)
  update autocapture label to be more descriptive (#3925)
  Log to sentry when migrations are out of date (#3924)
  Revert "Increase Element model varchar limits (#3912)" (#3923)
  Update plugin server to 0.16.1 (#3920)
  Are migrations safe to run on cloud?  (#3917)
  Run Automerge as posthog-bot (#3919)
  ...
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.

Minimum PostHog version for plugins
3 participants