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

Tweak Rule ID inference to work with F7 router #260

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

jimtng
Copy link
Contributor

@jimtng jimtng commented Mar 3, 2024

Framework7 doesn't like dots in the dynamic route path.
Accessing the script using the url /settings/scripts/filename.rb:xx will result in a 404 because no route would match.

@jimtng jimtng added the bug Something isn't working label Mar 3, 2024
Framework7 doesn't like dots in the dynamic route path.
Accessing the script using the url /settings/scripts/filename.rb:xx will result in a 404 because no route would match.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
@jimtng jimtng force-pushed the rule-id-inference branch from 0ef6a68 to 7ef92f2 Compare March 3, 2024 15:33
rule "log test" do
on_load
run do
after(1.second) do
executed = true
expect(logger.name).to match(/^org\.openhab\.automation\.jrubyscripting\.rule\.log_spec\.rb:(?:\d+)$/)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

When this expectation isn't met, an exception(?) is raised inside the timer. This somehow caused the whole rspec not to complete. It would time out after about 7 minutes. So I've moved it outside the timer.

Copy link
Contributor

Choose a reason for hiding this comment

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

well that sounds like something interesting to investigate, to prevent possible hanging builds in the future ;)

Copy link
Contributor

@ccutrer ccutrer left a comment

Choose a reason for hiding this comment

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

boo. I quite liked the .rb being part of the rule id. oh well.

rule "log test" do
on_load
run do
after(1.second) do
executed = true
expect(logger.name).to match(/^org\.openhab\.automation\.jrubyscripting\.rule\.log_spec\.rb:(?:\d+)$/)
Copy link
Contributor

Choose a reason for hiding this comment

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

well that sounds like something interesting to investigate, to prevent possible hanging builds in the future ;)

@ccutrer ccutrer merged commit fc7d9df into openhab:main Mar 5, 2024
18 checks passed
@jimtng jimtng deleted the rule-id-inference branch March 5, 2024 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants