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

[verisure] Adapted to new authentication process and support for non MFA activated user #11265

Merged
merged 5 commits into from Oct 16, 2021

Conversation

jannegpriv
Copy link
Contributor

[verisure] Adapted to new authentication process and support for non MFA activated user. (#11228)

Signed-off-by: Jan Gustafsson jannegpriv@gmail.com

@Skinah Skinah added the enhancement An enhancement or new feature for an existing add-on label Sep 30, 2021
…MFA activated user. (openhab#11228)

Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>
@lolodomo
Copy link
Contributor

lolodomo commented Oct 9, 2021

This is better to push an update rather than the full PR because now the reviewer has to do again a full review! Lost of time for the reviewer and more time before your work is merged.

@jannegpriv
Copy link
Contributor Author

Sorry, can you describe exactly what I have done wrong so that I will get it right next time? I've always used the command:

git push --force-with-lease

when pushing changes.

Copy link
Contributor

@lolodomo lolodomo left a comment

Choose a reason for hiding this comment

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

Please only oush an update containing the changes you will do to handle my comments.

@lolodomo
Copy link
Contributor

lolodomo commented Oct 9, 2021

Sorry, can you describe exactly what I have done wrong so that I will get it right next time?

Commit your new changes and just run a git push without forcing anything. Something like that:

git commit
git push origin 11228-verisure

@jannegpriv
Copy link
Contributor Author

Sorry, can you describe exactly what I have done wrong so that I will get it right next time?

Commit your new changes and just run a git push without forcing anything. Something like that:

git commit
git push origin 11228-verisure

OK, I actually was instructed by another maintainer to use -force-with-lease, but then i will not use force anymore.

@jannegpriv
Copy link
Contributor Author

The instructions here uses git push --force-with-lease.

@lolodomo
Copy link
Contributor

lolodomo commented Oct 9, 2021

There are situations where forcing push is adapted or even required but during the review process it is clearly not recommended for the reason I previously explained, that is it forces all reviewers to restart a full review of your PR. I did it in your case because your PR was not too large but I may have forgiven for a big PR.

Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>
Copy link
Contributor

@lolodomo lolodomo left a comment

Choose a reason for hiding this comment

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

This is almost ok for me.
I only discovered something that you should improve, even if not something directly related to this PR.

Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>
Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>
Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>
Copy link
Contributor

@lolodomo lolodomo left a comment

Choose a reason for hiding this comment

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

LGTM

@lolodomo
Copy link
Contributor

Build failed due to timeout.

@lolodomo lolodomo added rebuild Triggers Jenkins PR build and removed rebuild Triggers Jenkins PR build labels Oct 14, 2021
@jannegpriv
Copy link
Contributor Author

@lolodomo Thanks for the review. :-)
I got a question regarding catching RunTimeException in VerisureBridgeHandler.java on line 131.
Looking at the code, should the try catch be moved to after the scheduler.execute to be able to catch it if it is thrown by VerisureSession.initialize()?

@lolodomo
Copy link
Contributor

I got a question regarding catching RunTimeException in VerisureBridgeHandler.java on line 131.
Looking at the code, should the try catch be moved to after the scheduler.execute to be able to catch it if it is thrown by VerisureSession.initialize()?

Oh yes, you're right, the try/catch is not at the right level.

@jannegpriv
Copy link
Contributor Author

I got a question regarding catching RunTimeException in VerisureBridgeHandler.java on line 131.
Looking at the code, should the try catch be moved to after the scheduler.execute to be able to catch it if it is thrown by VerisureSession.initialize()?

Oh yes, you're right, the try/catch is not at the right level.

Should I create a new PR to fix that?
I would be nice to get this fixed to the upcoming 3.2.0 release.

@lolodomo lolodomo merged commit 18d26aa into openhab:main Oct 16, 2021
@lolodomo lolodomo added this to the 3.2 milestone Oct 16, 2021
@lolodomo
Copy link
Contributor

Should I create a new PR to fix that?

Yes, please.
I merged this PR to not delay your enhancement and because the build was successful (which is something difficult to get since few days).

frederictobiasc pushed a commit to frederictobiasc/openhab-addons that referenced this pull request Oct 26, 2021
…MFA activated user. (openhab#11228) (openhab#11265)

* [verisure] Adapted to new authentication process and support for non MFA activated user. (openhab#11228)

Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>

* Updated after code review.

Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>

* Updated after code review.

Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>

* Updated after code review.

Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>
dschoepel pushed a commit to dschoepel/openhab-addons that referenced this pull request Nov 9, 2021
…MFA activated user. (openhab#11228) (openhab#11265)

* [verisure] Adapted to new authentication process and support for non MFA activated user. (openhab#11228)

Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>

* Updated after code review.

Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>

* Updated after code review.

Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>

* Updated after code review.

Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>
Signed-off-by: Dave J Schoepel <dave@theschoepels.com>
@wborn wborn changed the title [verisure] Adapted to new authentication process and support for non MFA activated user. (#11228) [verisure] Adapted to new authentication process and support for non MFA activated user Dec 18, 2021
NickWaterton pushed a commit to NickWaterton/openhab-addons that referenced this pull request Dec 30, 2021
…MFA activated user. (openhab#11228) (openhab#11265)

* [verisure] Adapted to new authentication process and support for non MFA activated user. (openhab#11228)

Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>

* Updated after code review.

Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>

* Updated after code review.

Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>

* Updated after code review.

Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>
Signed-off-by: Nick Waterton <n.waterton@outlook.com>
nemerdaud pushed a commit to nemerdaud/openhab-addons that referenced this pull request Jan 28, 2022
…MFA activated user. (openhab#11228) (openhab#11265)

* [verisure] Adapted to new authentication process and support for non MFA activated user. (openhab#11228)

Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>

* Updated after code review.

Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>

* Updated after code review.

Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>

* Updated after code review.

Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>
volkmarnissen pushed a commit to volkmarnissen/openhab-addons that referenced this pull request Mar 3, 2022
…MFA activated user. (openhab#11228) (openhab#11265)

* [verisure] Adapted to new authentication process and support for non MFA activated user. (openhab#11228)

Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>

* Updated after code review.

Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>

* Updated after code review.

Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>

* Updated after code review.

Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>
marcfischerboschio pushed a commit to bosch-io/openhab-addons that referenced this pull request May 5, 2022
…MFA activated user. (openhab#11228) (openhab#11265)

* [verisure] Adapted to new authentication process and support for non MFA activated user. (openhab#11228)

Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>

* Updated after code review.

Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>

* Updated after code review.

Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>

* Updated after code review.

Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants