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

Add ABAP Language Version #184

Merged
merged 22 commits into from
Dec 7, 2023
Merged

Add ABAP Language Version #184

merged 22 commits into from
Dec 7, 2023

Conversation

mbtools
Copy link
Member

@mbtools mbtools commented Nov 9, 2023

After abapGit/abapGit#6637

- Add grouping to repo settings
- Explain name (new) and version (was missing)
- Add section on ABAP Language Version
Copy link
Member

@larshp larshp left a comment

Choose a reason for hiding this comment

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

see comments

@mbtools
Copy link
Member Author

mbtools commented Nov 14, 2023

I will make a table for the different combinations.

Copy link
Contributor

@schneidermic0 schneidermic0 left a comment

Choose a reason for hiding this comment

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

Thanks, @mbtools for the documentation of ABAP language version in abapGit.

Look quite good to me. 👍 I have just added some comments

src/user-guide/reference/abap-lanuage-version.md Outdated Show resolved Hide resolved
src/user-guide/reference/abap-lanuage-version.md Outdated Show resolved Hide resolved
src/user-guide/reference/abap-lanuage-version.md Outdated Show resolved Hide resolved
@mbtools mbtools marked this pull request as ready for review November 27, 2023 18:42
Copy link
Contributor

@schneidermic0 schneidermic0 left a comment

Choose a reason for hiding this comment

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

Thanks, for the update. I have just some small comments.

src/user-guide/reference/abap-lanuage-version.md Outdated Show resolved Hide resolved
src/user-guide/reference/abap-lanuage-version.md Outdated Show resolved Hide resolved
@schneidermic0
Copy link
Contributor

I think the setting "Any" has not been supported by the AFF object super class, yet. Currently, it removes the ABAP language version always.

Co-authored-by: Michael Schneider <[email protected]>
@mbtools
Copy link
Member Author

mbtools commented Nov 30, 2023

I changed the AFF logic already to remove ALaV only in "ignore mode"

https://github.com/abapGit/abapGit/blob/931e4c1006f4fa3947718686966b06579b4d8b47/src/objects/aff/zcl_abapgit_object_common_aff.clas.abap#L620-L623

This way, the files will be compatible between abapGit and ADT.

PS: Doing more testing and bug fixing.

@schneidermic0
Copy link
Contributor

I changed the AFF logic already to remove ALaV only in "ignore mode"

Ah, good to know. 👍 But one more question: In the documentation it is stated the ABAP LV is also not serialized if the repository is set to a specific version:

When serializing objects, the ABAP language version will **not* be part of the metadata of each object.

I guess we either need to adapt documentation or AFF logic should be remove ABAP LV only if the setting is "Any". What do you think?

@mbtools
Copy link
Member Author

mbtools commented Nov 30, 2023

Let's always keep ALaV, for XML and JSON formats, except for the "ignore mode". Then it's clear what you get by just looking at the file. We won't need any mapping when deserializing and can check if the object fits the repo setting. Better?

BTW, SAP did not include ABAP_LANGUAGE_VERSION in any DDIC views (DD0xV). Too scared to break something? 😜
That's why it's not included in any of the current DDIC XMLs. It will take some extra logic to add it.

@schneidermic0
Copy link
Contributor

Yes, this is fine for me :)

@mbtools
Copy link
Member Author

mbtools commented Dec 5, 2023

I added a section about supported object types. This should be good to go

Copy link
Member

@albertmink albertmink left a comment

Choose a reason for hiding this comment

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

Hmm, there are still some ABAP Language Versions around in the PR, for which I provided SUGGESTIONS. I didn't check the entire files, so maybe there are some left overs there as well.

src/user-guide/reference/abap-language-version.md Outdated Show resolved Hide resolved
src/user-guide/repo-settings/dot-abapgit.md Outdated Show resolved Hide resolved
src/user-guide/reference/abap-language-version.md Outdated Show resolved Hide resolved
src/user-guide/reference/abap-language-version.md Outdated Show resolved Hide resolved
@mbtools
Copy link
Member Author

mbtools commented Dec 6, 2023

Thanks for the corrections 👍

Copy link
Contributor

@schneidermic0 schneidermic0 left a comment

Choose a reason for hiding this comment

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

Looks good to me. Just one more question regarding supported object types but we can add these later.

src/user-guide/reference/abap-language-version.md Outdated Show resolved Hide resolved
@larshp
Copy link
Member

larshp commented Dec 7, 2023

👍

@mbtools
Copy link
Member Author

mbtools commented Dec 7, 2023

@larshp you just need to update your review 😉 🙏

@larshp
Copy link
Member

larshp commented Dec 7, 2023

done, sorry

@mbtools mbtools merged commit 38dcd8e into main Dec 7, 2023
1 check passed
@mbtools mbtools deleted the mbtools/abap-lang-vers branch December 7, 2023 15:31
@schneidermic0
Copy link
Contributor

Thanks @mbtools for your efforts 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants