Skip to content

Shippeable v1 #52

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
merged 2 commits into from
Apr 18, 2023
Merged

Shippeable v1 #52

merged 2 commits into from
Apr 18, 2023

Conversation

humitos
Copy link
Member

@humitos humitos commented Apr 17, 2023

  • Analytics
  • PR build notification

The API returns addons.search.enabled and addons.non_latest_version_warning as true currently. So, we can decide to re-deploy the JS file enabling this features without doing an application deploy again.

However, for now, we only want these pretty small addons to start testing the architecture and others.

Related #26

humitos added 2 commits April 17, 2023 13:05
- Analytics
- PR build notification

The API returns `addons.search.enabled` and `addons.non_latest_version_warning`
as `true` currently. So, we can decide to re-deploy the JS file enabling this
features without doing an application deploy again.

However, for now, we only want these pretty small addons to start testing the
architecture and others.
@humitos humitos requested a review from a team as a code owner April 17, 2023 11:06
@humitos humitos requested a review from agjohnson April 17, 2023 11:06
@humitos humitos self-assigned this Apr 17, 2023
Copy link
Contributor

@agjohnson agjohnson left a comment

Choose a reason for hiding this comment

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

This seems fine for now. If we need to disable more features we're actively developing, it could help to instead gate these features behind conditional checks for Webpack local development or something similar.

@humitos
Copy link
Member Author

humitos commented Apr 18, 2023

How that would be? Do you have a documentation link I can read? 😅

@agjohnson
Copy link
Contributor

Sure! I would use DefinePlugin: https://webpack.js.org/plugins/define-plugin/

There is a feature flag example there even, though we probably want to vary that value on whether the build was a development or production build, ie https://github.com/readthedocs/readthedocs-client/blob/main/webpack.config.js#L26

Anyways, not something that needs to hold this PR up, but would be an easy later change.

@ericholscher ericholscher merged commit a5f88d0 into main Apr 18, 2023
@ericholscher ericholscher deleted the humitos/shippeable-v1 branch April 18, 2023 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants