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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: remove most frontend references to available_features #22337

Merged
merged 11 commits into from
May 20, 2024

Conversation

xrdt
Copy link
Contributor

@xrdt xrdt commented May 16, 2024

Problem

I'm going to deprecate this in stages. This PR mainly removed frontend references to available_features and switched to using hasAvailableFeature when feature checks are necessary.

The next PR will handle the backend side of references to available_features.

The final PR will remove the database fields.

Changes

馃憠 Stay up-to-date with PostHog coding conventions for a smoother review.

Does this work well for both Cloud and self-hosted?

How did you test this code?

@posthog-bot
Copy link
Contributor

Hey @xrdt! 馃憢
This pull request seems to contain no description. Please add useful context, rationale, and/or any other information that will help make sense of this change now and in the distant Mars-based future.

@posthog-bot
Copy link
Contributor

馃摳 UI snapshots have been updated

22 snapshot changes in total. 0 added, 22 modified, 0 deleted:

Triggered by this commit.

馃憠 Review this PR's diff of snapshots.

Copy link
Contributor

github-actions bot commented May 16, 2024

Size Change: -28 B (0%)

Total Size: 1.05 MB

鈩癸笍 View Unchanged
Filename Size Change
frontend/dist/toolbar.js 1.05 MB -28 B (0%)

compressed-size-action

@posthog-bot
Copy link
Contributor

馃摳 UI snapshots have been updated

22 snapshot changes in total. 0 added, 22 modified, 0 deleted:

Triggered by this commit.

馃憠 Review this PR's diff of snapshots.

@xrdt xrdt force-pushed the by/deprecate-available-features branch from e099ce4 to 9a4ee34 Compare May 16, 2024 17:51
@posthog-bot
Copy link
Contributor

馃摳 UI snapshots have been updated

22 snapshot changes in total. 0 added, 22 modified, 0 deleted:

Triggered by this commit.

馃憠 Review this PR's diff of snapshots.

@xrdt
Copy link
Contributor Author

xrdt commented May 17, 2024

The experiments test keeps failing. I've asked for guidance about it on this PR: #22339

@posthog-bot
Copy link
Contributor

馃摳 UI snapshots have been updated

2 snapshot changes in total. 0 added, 2 modified, 0 deleted:

  • chromium: 0 added, 2 modified, 0 deleted (diff for shard 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

馃憠 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

馃摳 UI snapshots have been updated

2 snapshot changes in total. 0 added, 2 modified, 0 deleted:

  • chromium: 0 added, 2 modified, 0 deleted (diff for shard 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

馃憠 Review this PR's diff of snapshots.

Copy link
Contributor

@zlwaterfield zlwaterfield left a comment

Choose a reason for hiding this comment

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

nice work on this!

@xrdt xrdt merged commit 008698a into master May 20, 2024
84 checks passed
@xrdt xrdt deleted the by/deprecate-available-features branch May 20, 2024 21:24
timgl pushed a commit that referenced this pull request May 21, 2024
* remove most frontend references to available_features

* some more

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* adding back some items, fix tests

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* fix test

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
thmsobrmlr pushed a commit that referenced this pull request May 21, 2024
* remove most frontend references to available_features

* some more

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* adding back some items, fix tests

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* fix test

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
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.

None yet

3 participants