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

patch: fix error on startup #397

Merged
merged 2 commits into from
Oct 14, 2023
Merged

Conversation

matttbe
Copy link
Contributor

@matttbe matttbe commented Sep 30, 2023

Proposed Changes

I noticed on the ticket 391 that this patch cannot be applied properly on the last version:

INFO: Patching Grocy to fix relative URL handling...
patching file views/layout/default.blade.php
Hunk #1 FAILED at 88.
1 out of 1 hunk FAILED -- saving rejects to file views/layout/default.blade.php.rej

I simply tried to apply the patch on top of the latest v4.0.3 release and fixed the conflicts. The context has changed in v4.0: ActiveNav variable has been replaced by View in commit d16d976d0 ("Simplified viewjs / active page handling") in Grocy repo.

Related Issues

I don't know if this will fix the recent issues that have been reported (391, 392, 395) because I'm not using this addon yet: I was looking at trying it and I wanted to fix this issue first. That's why I didn't "link" this PR to these issues.

I noticed on the ticket 391 that the modified patch cannot be applied
properly on the last version:

  INFO: Patching Grocy to fix relative URL handling...
  patching file views/layout/default.blade.php
  Hunk hassio-addons#1 FAILED at 88.
  1 out of 1 hunk FAILED -- saving rejects to file views/layout/default.blade.php.rej

I simply tried to apply the patch on top of the latest v4.0.3 release
and fixed the conflicts. The context has changed in v4.0: 'ActiveNav'
variable has been replaced by 'View' in commit d16d976d0 ("Simplified
viewjs / active page handling") in Grocy repo.

I don't know if this will fix the recent issues that have been reported
(391, 392, 395) because I'm not using this addon yet: I was looking at
trying it and I wanted to fix this issue first.

Signed-off-by: Matthieu Baerts <matttbe@gmail.com>
@matttbe
Copy link
Contributor Author

matttbe commented Oct 3, 2023

Regarding the failure reported by the CI, please add the bugfix label: it looks like I don't have the permission to do that.

@frenck frenck added the bugfix Inconsistencies or issues which will cause a problem for users or implementors. label Oct 14, 2023
Copy link
Member

@frenck frenck left a comment

Choose a reason for hiding this comment

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

Thanks, @matttbe 👍

../Frenck

@matttbe
Copy link
Contributor Author

matttbe commented Oct 14, 2023

@frenck thank you for having approved this PR!

The CI complained about my initial patch which was 2 weeks old. After having synced my branch with the main one, all checks have passed now!

@frenck frenck merged commit 6886316 into hassio-addons:main Oct 14, 2023
13 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Oct 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bugfix Inconsistencies or issues which will cause a problem for users or implementors.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants