-
-
Notifications
You must be signed in to change notification settings - Fork 239
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
Expand Blockly with new blocks (part 1) & update to latest version #1179
Conversation
Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
@stefan-hoehn Could you please resolve the conflicts and remove the old commits not related to this blockly PR. |
HI Hans-Jörg, Can you guide me doing that?
Usually if I run into those kind of git issues, my feeling is to "start from scratch..." ? Would the easiest way to do the following?
Even worse there is something weird with my repo compared to openhab:
|
Hi Stefan, |
@stefan-hoehn the easiest way would be
(replace That is provided those three extra commits don't have anything you need for this PR. |
@asmigala Thanks for helping me - very much appreciated. I struggle with deletion of the "three lines"... (see at the end) This is what I do
` 789b72a 2021-04-10 07:39 +0200 Stefan Höhn o [main] {origin/HEAD} {origin/main} allow width/height for floorplan marker as advanced params 001160b 2021-04-07 14:51 +0200 Stefan Höhn o allow width/height for floorplan marker as advanced params(fix typo) ebd4b04 2021-04-02 15:52 +0200 Wouter Born o Upgrade Karaf to 4.3.1 (#984) ` I'd be happy to loose the last four commits as I have a copy of the newest and the other 3 can be lost Now I do
pick cffa127 [blockly] add new blocklies: audio, voice, timer # Rebase 789b72a..cffa127 onto 789b72a (1 command) I have no experience with rebase but reading the manual, doesn't have this to be changed to include the last one ebd4b04 like so? #not necessarily this one but would be okay # but these or (again, I really don't know what I am doing ;-)
Thanks again for you help, |
@stefan-hoehn sorry, my bad, I assumed you have the upstream repo as So the correct steps should be:
Now to get you
And that will just make your |
Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
…imer, ephemeris Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
Job #243: Bundle Size — 10.73MB (+0.28%).Changed metrics (3/8)
|
Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
A comprehensive description can be found at https://community.openhab.org/t/extending-blockly-with-new-openhab-commands/127169/45 @asmigala Thank you so much for the git support! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is a first round of review. :)
General remarks:
- all blocks should have the same orangeish color identifying them as from the "openHAB" category (hue: 0).
- all blocks labels should read like a natural English sentence.
bundles/org.openhab.ui/web/src/assets/definitions/blockly/ohblocks.js
Outdated
Show resolved
Hide resolved
bundles/org.openhab.ui/web/src/assets/definitions/blockly/ohblocks.js
Outdated
Show resolved
Hide resolved
bundles/org.openhab.ui/web/src/assets/definitions/blockly/ohblocks.js
Outdated
Show resolved
Hide resolved
bundles/org.openhab.ui/web/src/assets/definitions/blockly/ohblocks.js
Outdated
Show resolved
Hide resolved
bundles/org.openhab.ui/web/src/pages/settings/rules/script/blockly-editor.vue
Outdated
Show resolved
Hide resolved
bundles/org.openhab.ui/web/src/pages/settings/rules/script/blockly-editor.vue
Outdated
Show resolved
Hide resolved
bundles/org.openhab.ui/web/src/assets/definitions/blockly/ohblocks_timers.js
Outdated
Show resolved
Hide resolved
bundles/org.openhab.ui/web/src/assets/definitions/blockly/ohblocks_timers.js
Outdated
Show resolved
Hide resolved
bundles/org.openhab.ui/web/src/assets/definitions/blockly/ohblocks_timers.js
Outdated
Show resolved
Hide resolved
@ghys Can you check my two comments at https://community.openhab.org/t/extending-blockly-with-new-openhab-commands/127169/44 |
Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
…ehn/openhab-webui into blockly_enhancements_1
Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
02d3a08
to
213ad4c
Compare
@asmigala Can I ask you again one thing? The check noticed that I forget a signoff on particular commit (#1179 cd92dfc). Can you help me how I can only amend that one commit to have a --signoff as well? See https://github.com/openhab/openhab-webui/pull/1179/checks |
@stefan-hoehn the easiest way is probably using interactive rebase again, so Btw I see your PR has 15 commits now, including a merge commit (which is usually a no-no), so you might want to ask the maintainers of this repo whether you should squash. |
If there's one sign off missing on a single commit in a multiple-commits PRin but all the rest are, and if it's pretty clear that it was a mistake and not a willful omission for that particular commit, then I would say it's not such a big deal. On merge these commits will be squashed with the sign-off line anyways. However you should have added @bigbasec's sign-off as a To avoid forgetting signoff, if you use VS Code, there is an option: "Git: Always Sign Off" (you can find it by searching). |
Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
This should be hopefully the finally push for the enhancement. Believe me, I tried several times to rebase and squash the commits but failed badly (I pay someone a 🍺 if s/he is explaining me how to do this right 😢 ). So @ghys, can you please see if this all can now be merged? Thanks |
Not sure that this is even still all valid and working. I worked on this a looong time ago, but never got any feedback or anything, so I sort of dropped it. It's not something I ever intended to use anyway. I can probably still help here a bit, but not sure what needs to be done still. |
hey @bigbasec - good to see you finally. You provided a really good foundation you can be proud of on which I have based my work on. Without that I wouldn't have gotten that far so quickly. I refactored, fixed a lot, made it work, extended it and added quite some code and tested it. Now I hope we can release it very soon and everyone can use it. Nothing to do here at the moment anymore but you really deserve the appreciation to have it all started. If you like to see what happened in the last weeks, you can look here. |
Just so you know - I'll make sure I will credit you both equally in the final commit as you've both made sizeable contributions. |
@ghys Just to be sure (and not meaning to nag you) - Do you need anything from me to merge the PR? I am done with my work so far. |
Signed-off-by: Yannick Schaus <github@schaus.net>
Job #250: Bundle Size — 10.74MB (~-0.01%). |
Signed-off-by: Yannick Schaus <github@schaus.net>
Signed-off-by: Yannick Schaus <github@schaus.net>
Signed-off-by: Yannick Schaus <github@schaus.net>
Signed-off-by: Yannick Schaus <github@schaus.net>
Signed-off-by: Yannick Schaus <github@schaus.net>
Signed-off-by: Yannick Schaus <github@schaus.net>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay so I finished this myself, these last commits include a lot of adjustments & refactoring so make sure you pull the latest changes from main and start from there if you want to continue adding more blocks.
Also updated to the latest stable Blockly (Q2 2021, 6.20210701.0) - see https://github.com/google/blockly/releases for the changelog.
Noticed the upcoming release has a lot of changes, including the ability to define the toolbox using JSON instead of XML, which looks interesting to simplify the dynamic creation with the (upcoming) user-defined Blockly libraries.
This is the first step into adding many more openhab blockly blocks.
Details can be found in the following thread:
https://community.openhab.org/t/extending-blockly-with-new-openhab-commands/127169