-
-
Notifications
You must be signed in to change notification settings - Fork 422
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
Renamed namespace "org.eclipse.smarthome" to "org.openhab.core" #1294
Conversation
What version of the script did you use? I was working on it too and had the same tests fail. However I first had a problem with the sed replace (earlier version had 3, now 4 sed calls) The earlier version missed namespace in the xtend among other things. I've also added a specific patch for quartz-test.properties also in same problematic test. I was looking at why it didn't run the tests. It doesn't seem to be able to find |
I think I used revision 2 of your script. Yes, I saw an error related to |
I clicked your link to scriptimport but it took some time to reload, so I missed that while typing my message. But that maybe what I was missing. I've updated your changes locally and it's now running again. Also I use a separate clean local maven repo as it conflicts with current other builds. |
I submitted my WIP branch for IDE openhab/openhab-distro#1030. There seem to be a problem with discovery service(s). They do not work. OSGi is not able to initialize the components when running from Eclipse IDE. The other core bundles seem to work - without further testing. |
Integration tests for |
👍 One question regarding the naming: We now renamed a lot of packages from |
Yes, absolutely! Just as I said here. |
That does seem to make sense. I does require some more work because some classes are already in a core package and simply adding core to my script causes them to go into |
I guess the only exception has to be made for the https://github.com/openhab/openhab-core/tree/master/bundles/org.openhab.core bundle. |
I've updated the script it now puts all in core. I've pushed a branch with the changes here: https://github.com/Hilbrand/openhab-core/tree/1290/ |
Do you like to commit your latest changes against my branch of should we replace this one. |
You can simple |
f112ed4
to
acbede5
Compare
I applied your script again. The replacement part in // EDIT: I think your script requires a path as parameter |
One observation: This PR now has all files deleted and new ones created - which means that we will lose the complete history of the changes on the files (ok, not technically, but practically as something like "git blame" won't work anymore). Would it be possible to enhance the script to do a 2-step approach? First moving the files to the new location (while keeping their content untouched), commit the changes and then change the contents of the file with a second commit? This way, I would expect git to recognize that the files were moved and not newly created. Wdyt? |
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
218ecde
to
6e5fe9b
Compare
@kaikreuzer I tried your proposed split. The files are still shown as deleted in the full changes list. But the separate commits shows them as moved. Maybe GitHub cannot handle such a huge list of changes. |
GitHub will show a broken history, even if you only move the file. Just browse any binding on the addons repo in relation to the move to bundle. You can still see the history via blame. That will show the original changes line by line. |
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.
Ok, thanks - but I think it is definitely safer to keep the two separate commits in place as I am not convinced that git will correctly identify the moved files when they are changed in the same commit.
So the PR as it is now looks good to me and it should be merged by rebasing, not by squashing.
@openhab/core-maintainers Are you all fine with merging this or does anybody veto?
Let's go ahead with this and many thanks for working on this! I'm not that worried about blame/praise history being lost because there isn't that many to begin with since the ESH migration. I sometimes still go back there to see why code was written in a certain way. |
Where is the script located? I was curious to see if it was using |
I would be fine with this part too. There are some minor other changes necessary to completely get rid of "ESH" (e.g. naming of folders for XML definitions Line 29 in 8351a2f
But I think that can be done in a follow-up PR. |
…ges (openhab#1294) Signed-off-by: Kai Kreuzer <kai@openhab.org>
Closes #1290
No changes in files except renaming of namespace and
QualifiedName
definitions in bundles/org.openhab.core.model.script/src/org/openhab/core/model/script/scoping/ScriptImportSectionNamespaceScopeProvider.java.One disabled integration test:org.openhab.core.model.script.tests
.Signed-off-by: Christoph Weitkamp github@christophweitkamp.de