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

Made it easier to test the frontend against an existing core instance. #23062

Merged

Conversation

martetassyns
Copy link
Contributor

@martetassyns martetassyns commented Nov 29, 2024

Breaking change

Proposed change

I want to be able to test frontend changes on an existing core without having to modify that core's settings.
(not just a development one, production core as well)
I want to avoid the problems I've been experiencing with binding a single folder in two docker containers when using the development flow described for the documentation for the frontend.

Type of change

Added feature to allow building the frontend in such a way that it will connect to a different hassUrl.
Added script to easily start the development build, connect to a core, and host the frontend.

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (thank you!)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Example configuration

See documentation in script/develop_and_serve

Additional information

I plan to also update the documentation for frontend development to include this option once it has been accepted and included.

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue or discussion:
  • Link to documentation pull request:

Checklist

  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

Copy link

@home-assistant home-assistant bot left a comment

Choose a reason for hiding this comment

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

Hi @martetassyns

It seems you haven't yet signed a CLA. Please do so here.

Once you do that we will be able to review and accept this pull request.

Thanks!

@home-assistant home-assistant bot marked this pull request as draft November 29, 2024 22:58
@home-assistant
Copy link

Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍

Learn more about our pull request process.

@github-actions github-actions bot added the Build Related to building the code label Nov 29, 2024
Copy link

@home-assistant home-assistant bot left a comment

Choose a reason for hiding this comment

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

Hi @martetassyns

It seems you haven't yet signed a CLA. Please do so here.

Once you do that we will be able to review and accept this pull request.

Thanks!

@martetassyns martetassyns marked this pull request as ready for review November 29, 2024 23:10
@home-assistant home-assistant bot dismissed stale reviews from themself November 29, 2024 23:10

Stale

@martetassyns martetassyns marked this pull request as draft November 30, 2024 06:03
@martetassyns martetassyns marked this pull request as ready for review November 30, 2024 08:54
MindFreeze
MindFreeze previously approved these changes Dec 1, 2024
@MindFreeze MindFreeze enabled auto-merge (squash) December 2, 2024 13:21
@MindFreeze
Copy link
Contributor

Thanks!

@MindFreeze MindFreeze merged commit 5c7d9b3 into home-assistant:dev Dec 2, 2024
11 checks passed
@martetassyns martetassyns deleted the feat/serve-with-existing-core branch December 2, 2024 17:07
@bramkragten
Copy link
Member

This will not work for all REST endpoints that don't have CORS enabled will it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build Related to building the code cla-signed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants