Commit Graph

4578 Commits

Author SHA1 Message Date
DerGuteWolf
4c07c33c21
TABL, default ROWORCOLST on deserialize (#4430)
* Fix for #4425

* Remove whitespace at end of line

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

* Remove whitespace at end of line

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

Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>
2021-01-21 06:21:23 +01:00
Marc Bernard
5c7baae1ab
Refactor CTS API and support additional objects (#4424)
* Refactor CTS API and support additional objects

- Change methods from public to private
- Reduce interface to public methods
- Support objects that can not be locked but can be included in a transport (prep for namespaces)

* Remove lenght check

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2021-01-20 18:23:10 +01:00
Jakub Filak
ad0c8cd12e
utils: allow repo names with dots (#4428)
There is no problem with having dots in names - we have these names in
our corporate github.

I don't know how to deal with the non-deterministic regex differently
than first trying with the suffix .git and than without it.

Closes #4427
2021-01-20 12:31:43 +01:00
Marc Bernard
31a550db0f
Refactor I18N settings (#4423)
* Refactor I18N settings

- Consolidate I18N parameters into a structure and pass it to xml and serializer classes (#4415)
- Continue change of terminology (#4043)

* Remove changes to serializer class

* Main lang

* DSYS

* OTGR

* Repo view

* Main langu

* Repo view %26 stage

* Serialize

* Settings

* Repo view

* Defs

* Stage

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2021-01-19 14:29:09 +01:00
Marc Bernard
fd86eaa0bc
Repo view: Adjust link to settings & render transport (#4422)
* Repo view: Adjust link to settings & render transport 

- Update link text
- Re-init flag to render transport (in case the package has changed)

* Main langu
2021-01-19 08:11:22 +01:00
Marc Bernard
7d4773ca23
NSPC: Add warning if namespace does not exist (#4420)
* NSPC: Add warning if namespace does not exist

Part 1 of #835

* Limit to xml files

* Unit test

* RC

* Regex

* Refactor checks into methods

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2021-01-18 17:55:34 +01:00
Lars Hvam
392562ef22
update ajson to latest (#4417) 2021-01-18 09:37:18 +01:00
Alexander Tsybulsky
47dae10ab0
I18n settings (#4416)
* dot abapGit i18n_langs

* rewrite dot abapgit (better design)

* settings

* linter fix

* review fixes

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2021-01-18 09:32:55 +01:00
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