-
-
Notifications
You must be signed in to change notification settings - Fork 534
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
resetting local objects do not move them to the package #2706
Comments
hmm, I'm pretty sure this works |
Generally abapGit does not overwrite something outside the target package unless the user confirms this is okay, this is important in case multiple repos have objects with identical names The code in |
perhapce I am not understanding what kind of changes are required. As per my understanding, the current implementation will call the zif_abapgit_oo_object_fnc~create method only if the user agrees to overwrite the class in the different package. The current implementation will then happily overwrite the file in the different package (and will do nothing if the user does not agree to overwrite the class). |
okay, just not sure what the as-is scenario is, what is exactly happening when the user tries to do this, guess I'll test it when I get time |
fm SEO_CLASS_* should not be needed to relocate to a different package, plus we need a generic solution that works for all object types |
current version properly reassigns objects to packages on pull (https://github.com/abapGit/abapGit/blob/main/src/objects/zcl_abapgit_objects.clas.abap#L220) |
It looks like reset local command does not move objects between packages. I have come up with the solution that deletes/recreates the objects
How to reproduce:
create a package with a single class and put it to online repository. then reassign the class to some other package. Done - you will never be able to reset locally such a package
it looks like the #842 is already referencing this issue, but is closed with workaround. The workaround is creating a lot of manual work if objects are scattered between packages.
The text was updated successfully, but these errors were encountered: