Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@AndrewDryga
Copy link
Contributor

Closes #1477

@AndrewDryga AndrewDryga added the kind/bug Something isn't working label Mar 1, 2023
@AndrewDryga AndrewDryga requested a review from jamilbk March 1, 2023 16:23
@coveralls
Copy link

Pull Request Test Coverage Report for Build 7a3fe23c46248cc71dab43bbf269c2505d81427b-PR-1478

  • 1 of 2 (50.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 66.667%

Changes Missing Coverage Covered Lines Changed/Added Lines %
apps/fz_http/lib/fz_http/types/protocols.ex 1 2 50.0%
Totals Coverage Status
Change from base Build fd769f14b304c8685a4d9b919d4f3305ac9ec1e7: 0.2%
Covered Lines: 1680
Relevant Lines: 2520

💛 - Coveralls

test "blocks overridden default client endpoint" do
FzHttp.Config.put_system_env_override(:default_client_endpoint, "1.2.3.4:1234")

{_admin_user, conn} = admin_conn(%{})
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need live view to start after the config is overridden, otherwise, the page is already rendered when we try to set config update and there is no helper function in LiveView to re-render it (call update/2 again).

Copy link
Member

Choose a reason for hiding this comment

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

This makes sense.

Copy link
Member

@jamilbk jamilbk left a comment

Choose a reason for hiding this comment

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

LGTM.

test "blocks overridden default client endpoint" do
FzHttp.Config.put_system_env_override(:default_client_endpoint, "1.2.3.4:1234")

{_admin_user, conn} = admin_conn(%{})
Copy link
Member

Choose a reason for hiding this comment

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

This makes sense.

@AndrewDryga AndrewDryga merged commit 8a3e8bb into master Mar 1, 2023
@AndrewDryga AndrewDryga deleted the andrew/add_protocol_impl_for_ip_struct branch March 1, 2023 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Internal Server Error when trying to add a device

4 participants