Commit Graph

4570 Commits

Author SHA1 Message Date
Marc Bernard
6dac984acc
Improve error message for getting request type (#4421)
Co-authored-by: Lars Hvam <larshp@hotmail.com>
2021-01-18 09:31:12 +01:00
Marc Bernard
8ff0445673
DEVC: Avoid dump when creating new package (#4419)
Usually, in abapGit packages are created by the folder logic already. But it dumps with "`li_package` is not assigned," if deserialize is used in other ways.

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2021-01-18 09:19:31 +01:00
Marc Bernard
7e2d05a30b
AVAR: Remove tadir when uninstalling (#4418) 2021-01-18 07:34:31 +01:00
Marc Bernard
a824eef662
Prevent staging of duplicate files (#4403)
* Prevent staging of duplicate files

Since objects cannot exist in multiple packages, the staging page is now checking the selected files to prevent the resulting repo from containing an object multiple times.

If an object is moved to another SAP package and the corresponding files are seleted to be added to the repo (for the new package), then the files must also be removed from the repo (from the old package). If not, an error is raised.

* Remove other changes

* Update file status

* Extend unit test

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2021-01-17 09:28:54 +01:00
Lars Hvam
db6db7cf79
remove more unused variables (#4413) 2021-01-15 17:22:51 +01:00
Lars Hvam
690da4e51f
delete some unused variables (#4411)
* delete some unused variables

* bdef, remove unused vars

* remove some more
2021-01-15 08:31:01 +01:00
Marc Bernard
9ef3f1ee7e
Uninstall ENQU before TABL (#4412)
Lock objects must be uninstalled before corresponding tables
2021-01-15 08:27:48 +01:00
Marc Bernard
748ff1b09b
Dialogs: Remove old repo settings (#4406)
- Remove repo settings page
- Redirect repo overview to new repo settings
- Fix "requirements" table on new repo settings page

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2021-01-14 14:13:35 +01:00
Marc Bernard
fcd1159416
UI: Adjust "back" for settings (#4409)
Changes "back" to go to bookmarked page. Closes #4408
2021-01-14 07:44:28 +01:00
Marc Bernard
231d0c01e6
Fix ignore logic for local files (#4407)
Closes #4405

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2021-01-13 08:16:04 +01:00
ThomasPloski
468a1f3df8
Adjustment to BDEF Object Handler (#4012)
* Adjustment to BDEF Object Handler

Adjustment to BDEF Object Handler regarding exchange file format

* fix abaplint stuff

* fix abaplint issue

* adaptation in deserialize method

* fix abaplint issues

* fixes abaplinter issues

* requested changes

* fix type issue

* fix type issue

* delete unused method FILL_METADATA_FROM_DB

* enhance signature with exception information

* change reference type

* change to initial activation logic

* change to abap step for activation

* change of reference type as part of create Service

Co-authored-by: Christian Günter <christianguenter@googlemail.com>
Co-authored-by: Lars Hvam <larshp@hotmail.com>
2021-01-13 08:10:27 +01:00
Lars Hvam
a704c355aa
unit testing test (#4391)
* unit testing test

* upd

* upd

* upd

* upd

* update deps

* upd

* upd

* update deps

* upd

* update abaplint to latest

* enable rule use_class_based_exceptions
2021-01-12 15:57:17 +01:00
Marc Bernard
40331ee80f
Follow-up HTML viewer exceptions (#4404)
* Follow-up HTML viewer exceptions

Properly catch HTML viewer exceptions (follow-up #4396) to avoid dumps

* Add exception

* Add exception

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2021-01-12 08:54:03 +01:00
Marc Bernard
830a682421
W3xx: Add object to transport on uninstall (#4402)
Fix missing transport entry when uninstalling `w3mi` and `w3ht`.

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2021-01-12 08:49:44 +01:00
Marc Bernard
ac5c00ec88
Remove dependency on persistence interface from exits (#4400)
* Remove dependency on persistence interface

Minor adjustment to exit interface (`zif_abapgit_exit`)

* Lint

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2021-01-12 08:46:50 +01:00
Lars Hvam
d1d12da6fe
data serialization, keep item order (#4399) 2021-01-12 08:44:39 +01:00
Lars Hvam
f1dbe88729
suppress syntax warnings (#4398) 2021-01-11 10:28:27 +01:00
Lars Hvam
da06a04136
update ajson from mirror (#4394)
* update ajson from mirror

* Update zif_abapgit_ajson.intf.abap

* update
2021-01-11 10:24:04 +01:00
Lars Hvam
acd8465bcf
docs: SUSH supported (#4397) 2021-01-11 10:11:40 +01:00
Lars Hvam
89c77d9e6b
zif_abapgit_html_viewer, change to class based exc (#4396)
* zif_abapgit_html_viewer, change to class based exc

#4381, part A

* catch
2021-01-11 09:59:26 +01:00
Alexander Tsybulsky
44fceb677c
downport data_serializer (#4392) 2021-01-09 16:32:41 +01:00
Lars Hvam
48e74547b9
unit testing test (#4377)
* unit testing test

* update deps

* update deps

* update deps

* update

* update

* update deps

* add zcl_abapgit_gui_buttons

* update deps

* enable more files

* enable zcx_abapgit_not_found

* upd

* upd

* upd
2021-01-09 10:54:45 +01:00
Lars Hvam
889d062e1c
data, basic serialization (#4369)
* data

* refactor ZCL_ABAPGIT_SERIALIZE

* upd

* serializing

* cleanup

* fix

* fix

* rename
2021-01-09 10:50:58 +01:00
Marc Bernard
2e476eb7b2
Dialogs: HTML forms for repo settings (#4384)
* Dialogs: HTML forms for repo settings

This moves the repo settings to HTML forms. The settings are split into three pages:
- Repository settings (ie abapgit.xml)
- Local settings
- Infos

* Lint

* Infos > Stats

* Infos > Stats

* Infos > Stats

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2021-01-08 13:09:37 +01:00
Marc Bernard
9f91e4f3ad
Move method is_sap_object_allowed (#4385)
Closes https://github.com/abapGit/abapGit/issues/4382

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2021-01-08 12:06:06 +01:00
Marc Bernard
6b23aaa0fd
Reduce memory consumption during deserialize (#4389)
* Reduce memory consumption during deserialize 

Fix issue with namespace objects

https://github.com/abapGit/abapGit/pull/4357

* Unit test
2021-01-08 11:57:47 +01:00
Marc Bernard
eb5fdfb404
Fix dump when switching to PR (#4388)
* Fix dump when switching to PR

Closes https://github.com/abapGit/abapGit/issues/4387

* pragma
2021-01-07 18:14:25 +01:00
Marc Bernard
e5540ae054
UI: Refactor form class and fix textarea (#4379)
* UI: Refactor form css class

- Move styles to CSS
- Provide default for form class
- Remove form class from render calls

* Update css

* Condense textarea

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2021-01-05 09:25:58 +01:00
Lars Hvam
9f583c1bcc
use non interfaced fields_to_string() (#4378) 2021-01-05 07:57:30 +01:00
Marc Bernard
46bc6dc5db
ENHC: Last changed by (#4380) 2021-01-05 07:55:19 +01:00
Lars Hvam
8b506aa077
omit some default parameter names (#4370)
* apack, omit parameter names

* mass and objects

* omit

* omit
2021-01-04 10:41:20 +01:00
Marc Bernard
25f2bf4d40
DDLS: Fix dump during serialization (#4371)
The specific dump occurred when the source was empty. Now it checks the string length properly.

Closes #4309

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2021-01-04 10:06:42 +01:00
Lars Hvam
dd97e7a55f
update deps (#4376) 2021-01-04 10:04:31 +01:00
Lars Hvam
1d1d046d39
data: use ajson for serialization (#4363)
* data: use ajson for serialization

* config to_json

* implement from_json

* fix

* move method build_table_itab to new class

* start deserialize

* update

* scaffolding

* add page

* upd

* fix warning

* update

* rename variable

* upd

* update

* reorder
2021-01-03 04:55:24 +01:00
Lars Hvam
2b7a60daeb
docs: ui forms, fix syntax in example (#4366) 2021-01-03 04:53:44 +01:00
Lars Hvam
d35848b2f8
string map: change set() input value to csequence (#4368) 2021-01-03 04:51:10 +01:00
Lars Hvam
26c275a287
docs: ui forms, fix title (#4364) 2021-01-02 15:15:24 +01:00
Marc Bernard
6623679e67
Dialogs: HTML forms - follow-up (#4329)
* Dialogs: HTML forms - follow-up

Follow-up to #4264:

- Split `zcl_abapgit_html_form` class
Processing form data has been moved to `zcl_abapgit_html_form_utils`

- `iv_is_main` refactored to `iv_cmd_type`

- In case of unsaved data, form exit will now prompt for confirmation (`zcl_abapgit_html_form_utils`)

* dot space

* lint

* Remove const

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2021-01-02 15:12:09 +01:00
Lars Hvam
4f95be22ad
REPO changes (#4361)
* method ZCL_ABAPGIT_REPO->FIND_REMOTE_DOT_APACK changed to private
* method ZCL_ABAPGIT_REPO->RESET_LOG deleted

#2127
2021-01-02 09:02:52 +01:00
Marc Bernard
6dfa4eee17
Reduce memory consumption during deserialize (#4357)
* Reduce memory consumption during deserialize

Import of objects required unnecessarily a lot of memory. This was the especially the case during the initial import of repos with large (binary) objects or high number of objects (even if they were not under /src/). 

With this fix, an instance of an object serializer now contains only the files associated with this object (rather than all (!) files of the repo).

* Change path logic

* Comment

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2020-12-30 08:59:41 +01:00
Marc Bernard
98ecc1a51c
Package Structure - Part 5 (#4360)
* Package Structure - Part 5

Final part of package structure reorg. Moving repo related classes and interfaces.

$ABAPGIT_REPO:

ZCL_ABAPGIT_DOT_ABAPGIT
ZCL_ABAPGIT_REPO
ZCL_ABAPGIT_REPO_CONTENT_LIST
ZCL_ABAPGIT_REPO_FILTER
ZCL_ABAPGIT_REPO_OFFLINE
ZCL_ABAPGIT_REPO_ONLINE
ZCL_ABAPGIT_REPO_SRV
ZIF_ABAPGIT_DOT_ABAPGIT
ZIF_ABAPGIT_REPO_LISTENER
ZIF_ABAPGIT_REPO_ONLINE
ZIF_ABAPGIT_REPO_SRV

Closes https://github.com/abapGit/abapGit/issues/4253

* Remove delta

* Remove delta

* Remove delta

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2020-12-29 11:34:29 +01:00
Marc Bernard
6f38ae63dd
ENxx: Fix error when uninstalling (#4359)
Uninstall of enhancements failed with "Action cancelled" error and left object locked. 

Removed call of `save` since calling `delete` method is sufficient. Also added `run_dark` for `delete`.

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2020-12-29 09:41:13 +01:00
Marc Bernard
871a47516b
SHI5: Add object to transport (#4358)
Closes #4211
2020-12-29 09:28:41 +01:00
Lars Hvam
236ec45dcd
very basic data serialization, standalone (#4218)
* data, wip

* scaffolding, factory and injector

* update

* upd

* upd

* update

* rename fs

* update

* line break parameters

* use shorthand hash
2020-12-28 13:29:21 +01:00
Marc Bernard
e7d7723bd5
Raise error if package is not part of package hierarchy (#4331)
* Raise error if package is not part of package hierarchy

If a package exists locally and remotely, but the local package is not part of the package hierarchy associated with the repo, then an error message will be raised.

The local package must be assigned manually to the package hierarchy before abapGit can process this scenario. 

Note: The assignment is not done automatically, since it's not clear where in the hierarchy the new package should be located.

* lv_msg

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2020-12-28 13:26:45 +01:00
d034973
afb8ff8671
new handler for SUSH (#4324)
* neu handler for SUSH

* fix ABAP

* fixed SUSH

* fixed SUSH

* fixed SUSH

* fixed SUSH

* fixed SUSH

* fixed SUSH

* fixed SUSH

* fixed SUSH

* fixed SUSH

* fixed SUSH

* fixed SUSH

* fixed SUSH

* fixed SUSH

* fixed SUSH

* fixed SUSH

* fixed SUSH

* fixed SUSH

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2020-12-28 13:24:03 +01:00
Lars Hvam
79f810b349
1.104.0 (#4356)
* 1.104.0

* v1.104.0
2020-12-28 13:18:41 +01:00
Marc Bernard
4bfc56b79e
Fix pull errors related to files deleted remotely (#4338)
* Fix pull errors related to files deleted remotely

Improve #4281 by moving "ignore logic" to `filter_files_to_deserialize`

* Added unit test

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2020-12-28 12:59:21 +01:00
Eduardo Ferrari Copat
16258c59b6
Checkout commit: additional user interface (#4120) (#4349)
* Set branch name with commit

* Can't stage when commit is checked out

* Add missing variable

* Remove passing a parameter, since set relies on IS SUPPLIED

* Undo last commit

* Intelligent create branch when commit is checked o

ut

* lint

* Fix cancel buttons (missing commit)

* Code review

* Remove unused variables

* Add extra line

* Remove unused variable

* Add back new branch pop-up. Considers tag.

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2020-12-28 12:39:26 +01:00
Lars Hvam
704198f521
unit testing test (#4345)
* update deps

* update deps

* remove CHAR01 usages

* update deps

* update deps

* update deps

* all unit tests in syntax now running!

* update deps

* update deps

* update deps

* enable additional exception unit tests

* zcl_abapgit_string_map running

* upd

* login manager running

* update deps, add progress clas

* upd

* update deps

* fix whitespace

* update deps

* upd

* update deps

* update deps

* update deps

* use cl_abap newline

* upd

* run more

* sort

* update deps

* add intf

* update deps

* upd

* add zcl_abapgit_exit

* some xml interfaces

* zcl_abapgit_version running
2020-12-27 18:00:59 +01:00