Commit Graph

5175 Commits

Author SHA1 Message Date
github-actions[bot]
15df1fd539
ajson, Automatic Update (#5689) 2022-07-20 08:10:52 +02:00
Lars Hvam
d0e2314bad
unit testing (#5683) 2022-07-13 10:57:56 +02:00
Albert Mink
0bf8388a6e
Use sy-uname instead cl_abap_syst->get_user_name (#5685) 2022-07-13 09:13:41 +02:00
Marc Bernard
bdfe982ee8
Improve package / sub-package check (#5628)
If a sub-package is removed from the package hierarchy, instead of an exception, abapGit now shows a detailed warning message in the log.

This allows to remedy the situation either by adding the sub-package to the package hierarchy or by removing the sub-package from the repository (via push).
2022-07-12 11:14:02 +02:00
github-actions[bot]
b6de2d0dc8
ajson, Automatic Update (#5682) 2022-07-11 12:17:51 +02:00
Lars Hvam
97558e0b73
run additional unit tests (#5671) 2022-07-10 14:58:31 +02:00
Lars Hvam
2f5d44de3e
IWSG: implement CHANGED_BY (#5680) 2022-07-08 11:11:46 +02:00
Christian Günter
5af8cf8862
AFF: Downport (#5679)
* AFF: Downport

* fix lint
2022-07-06 17:15:42 +02:00
Marc Bernard
89103ce49c
Repo view: Fix "View > Changes only" for offline (#5641)
Closes #4266
2022-07-06 10:23:28 +02:00
Albert Mink
96cd546c7e
[AFF] Get data for serialization from the DB (#5670)
* [AFF] Get data for serialization from the DB

This is definitely not 7.02 syntax.

Contributes to #5658

* is this 7.02 syntax?

* WIP: inlide data declaration

* declare locale variable FIELD-SYMBOL

* multiple statements -> line break; local variable

* one more FIELD0-SYMBOL

* fix redundant `this`

* WIP: streamline data types

* WIP: streamline data types and typos

* add const to abaplint config

* rm commended code line

* add const to abaplint config

* WIP: SELECT follows 7.02 syntax

* space before dot

* WIP: SELECT 7.02

* linter constants

* WIP: finish SELECT 7.02

* Update src/objects/zcl_abapgit_object_intf.clas.locals_imp.abap

Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>

* add ci/abaplint CONST

* more CONST to ci/abaplint

Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>
2022-07-05 08:54:47 +02:00
Marc Bernard
d427c6cfe7
Skipping serialization for ignored objects (#5648)
* Skipping serialization for ignored objects 

Serialization now evaluates the ignore list and skips matching objects. Note: The match is using the ABAP `cp` operator.

Example:
```
*ztest.prog.*         Ignore individual program
*.ectd.*                 Ignore all objects of a given type
*/subpack/*           Ignore all objects in a sub-package
```
2022-07-01 08:16:44 +02:00
Albert Mink
89090b5c00
[AFF] Allow object handler to serialize JSON via experimental feature (#5660)
* [AFF] Object handler for INTF

* Add JSON handler

* hard coded language

* adopt to abapLint rules

* wip: abaplint

* wip: abapLint

* adjust to naming conventions

* AJSON filtering abapLanguageVersion for serializat

* SELECT 7.02; UPPER

* abapLint params

* filter/remove the empty arrays

* reset obj handler to origin/main

* add experimental feature to enable AFF serializati

* typos, indentation and more

* move code to local clas

* Update src/objects/zcl_abapgit_object_intf.clas.abap

Co-authored-by: Lars Hvam <larshp@hotmail.com>

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2022-06-30 16:06:55 +02:00
Albert Mink
eb2ae98c6d
[Refac] Object handler for INTF (serialize) (#5668) 2022-06-30 11:51:41 +02:00
Marc Bernard
01297df9a5
Avoid duplicate key error (#5663)
Follow-up #5652

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2022-06-29 14:39:10 +02:00
Marc Bernard
394212630d
1.116.0 (#5653)
See [changelog](https://github.com/abapGit/abapGit/blob/main/changelog.txt)
2022-06-29 12:29:06 +02:00
Marc Bernard
3e4c684815
Rename repo interface method implementations (#5667)
Renames methods after changing to interface. Interface methods are now properly named `<interface>~<method>` (instead of `<alias>`). This also fixes warnings and navigation issues in `SE24/SE80`.
2022-06-28 09:24:47 +02:00
Christian Günter
2d178b650a
Improve folder logic popup (#5662) 2022-06-27 13:20:35 +02:00
Katharina Wurz
a9f7562d82
Change type assignment (#5661)
Co-authored-by: Lars Hvam <larshp@hotmail.com>
Co-authored-by: Marc Bernard <59966492+mbtools@users.noreply.github.com>
2022-06-27 13:16:34 +02:00
Christian Günter
bfdbee9990
SSST: Suppress list output for warnings (#5666)
Co-authored-by: Marc Bernard <59966492+mbtools@users.noreply.github.com>
2022-06-27 13:09:38 +02:00
Marc Bernard
2857f5f3fb
Downport: GUI HTML Viewer (#5664)
Closes #5654
2022-06-27 12:31:10 +02:00
Marc Bernard
e3cbb7dcf1
Fix repo settings dialog (#5649)
* Fix repo settings dialog

Fixes handling of textarea field

Closes #5484

* Lint
2022-06-27 10:44:44 +02:00
Christian Günter
7f80845308
LinkHints: enable radio button (#5656) 2022-06-27 10:38:36 +02:00
Christian Günter
d145837d96
DDLX: implement changed_by (#5655)
Co-authored-by: Lars Hvam <larshp@hotmail.com>
2022-06-27 10:15:44 +02:00
Albert Mink
b667532004
[AFF] Add the type for INTF (manually) (#5639)
* [AFF] Add the types for INTF manually

* Add the types

* [AFF] JSON handler based on AJSON: deserialize

Minimal example in UT.
UT is RED, since AJSON does not yet match the ST behavior

// the change might be cherry-picked when AFF types are provided in abapGit

* Revert "[AFF] JSON handler based on AJSON: deserialize"

This reverts commit 149d2a86c3.

* Update zif_abapgit_aff_intf_v1.intf.xml

* Update zif_abapgit_aff_oo_types_v1.intf.xml

* Update zif_abapgit_aff_types_v1.intf.xml

* BOM

* Update zif_abapgit_aff_oo_types_v1.intf.xml

* Update zif_abapgit_aff_types_v1.intf.xml

* [abaplint] skip folder aff_types

* Revert "[abaplint] skip folder aff_types"

This reverts commit f63b601a3d.

* [abaplint] exclude aff_types for unused check

* mv AFF types to src/objects/aff_types

* Update zif_abapgit_aff_oo_types_v1.intf.xml

* Update zif_abapgit_aff_types_v1.intf.xml

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2022-06-27 08:59:34 +02:00
Marc Bernard
8555d1a0da
Remove aliases - Repo services (#5640) 2022-06-23 14:49:06 +02:00
Marc Bernard
8baf69ed98
Diff: Properly show diffs for whitespace (#5643) 2022-06-23 14:35:31 +02:00
yellappam
ef29fa7411
Clear IWVB metadata fields (#5647)
Co-authored-by: Marc Bernard <59966492+mbtools@users.noreply.github.com>
2022-06-23 13:16:20 +02:00
Marc Bernard
787bc605b0
Propagate codepage conversion errors (#5638) 2022-06-23 07:12:25 +02:00
github-actions[bot]
7730d37d1b
ajson, Automatic Update (#5631) 2022-06-22 17:52:28 +02:00
Lars Hvam
4ad2673215
update abapmerge to latest (#5642) 2022-06-22 13:47:00 +02:00
yellappam
c63cc7a9d2
Clear IWPR and IWSV metadata fields (#5637)
Co-authored-by: Marc Bernard <59966492+mbtools@users.noreply.github.com>
2022-06-21 13:05:31 +02:00
Christian Günter
f386846858
New Offline: Auto create package if non-existing (#5634)
Co-authored-by: Marc Bernard <59966492+mbtools@users.noreply.github.com>
2022-06-21 12:44:51 +02:00
yellappam
402c970b5e
Clear IWOM/IWMO object metadata (#5635)
* Clear IWOM/IWMO object metadata

It clears metadata related to object types IWOM and IWMO

* change keyword 'value' to upper case
2022-06-21 11:04:55 +02:00
Christian Günter
80b60e9cde
Fix variant maintainance for abapGit report (#5627) 2022-06-20 17:30:54 +02:00
Lars Hvam
ddf1c048a0
add authorization exit on startup (#5630)
#5629
2022-06-17 11:49:53 +02:00
Alexander Tsybulsky
380508d72c
FUGR: Better maintenance view auto comments cleanups (#5622) 2022-06-13 12:00:09 +02:00
Marc Bernard
20e15a19c2
Adjust screen element naming (#5625)
Prep for additional abaplint rule
2022-06-08 19:16:25 +02:00
Marc Bernard
188996e417
UI: Message box improvements (#5616)
- Align width of message box to width of abapGit div (instead of full window width)
- Don't render "Message (00/001)" for generic messages

Closes #5614
2022-06-08 07:54:29 +02:00
github-actions[bot]
3131fc6cf8
ajson, Automatic Update (#5620) 2022-06-06 15:30:14 +02:00
Lars Hvam
3349b6a42d
run more unit tests via transpiler (#5615) 2022-06-06 15:15:36 +02:00
Marc Bernard
6e5f41277f
W3xx: Replace call with TADIR_INSERT (#5618) 2022-06-06 07:48:10 +02:00
Marc Bernard
7ba88d4345
Remove aliases - Common AFF (#5619)
Continue #5580
2022-06-05 21:45:38 +02:00
Marc Bernard
bb13a1ff10
Add exceptions to TR_TADIR_INTERFACE (#5617)
Better support for debugging
2022-06-05 21:29:04 +02:00
Marc Bernard
da24dba592
Fix dump when switching repo to offline (#5613) 2022-06-05 18:46:31 +02:00
Fabian Lupa
1052ce6e85
Support direct longtexts in exceptions (#5592)
* Support direct longtexts in exceptions

as opposed to already supported indirect T100-based longtexts

* Lint

* Remove direct longtext variable support

* Add unit tests for exception longtext

* Add longtext message to language mismatch error

* Fix missing preserve_newline handling

* Adjust longtext display in error message box

- Convert newlines to html line breaks
- Indicate if a longtext is available on hover

* Fix duplicate preserve newline handling

* Adjust exception longtext rendering

Render linebreaks as html paragraphs

* Align error message box buttons to bottom right

so they do not move on hover when a longtext is available

* Refactor exception unit tests

* Skip failing transpiled tests

* Adjust longtext indicator for error message

Co-authored-by: Marc Bernard <59966492+mbtools@users.noreply.github.com>
Co-authored-by: Lars Hvam <larshp@hotmail.com>
2022-06-05 18:40:34 +02:00
Marc Bernard
2855e7e7bf
Small git utils improvements (#5611)
* Small git utils improvements

- Saves ~20ms per call of `length_uft8_hex`
- Improve test coverage

* Update test

* Update abap_transpile.json

* no skip, fixed

* Update test

* Update abap_transpile.json

* update

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2022-06-05 14:37:57 +02:00
Marc Bernard
2415a5c0c0
SOTR: Fix uninstall (#5558)
After all OTR usage has been removed, uninstall will now also delete the TADIR entry for SOTR. This is necessary in order to delete the corresponding package.
2022-06-04 13:41:50 +02:00
Marc Bernard
0ab3ee0a06
Remove aliases from object classes (#5588) 2022-06-04 10:33:42 +02:00
Marc Bernard
c88e1aba5d
AFF: Fix exception handling (#5609)
Catch exceptions when calling `TADIR` deletion

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2022-06-02 10:06:01 +02:00
Marc Bernard
380f297bc7
DSYS: Fix exceptions (#5608)
Replace exceptions with correct names
2022-06-01 11:18:22 +02:00