Commit Graph

4393 Commits

Author SHA1 Message Date
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
Lars Hvam
408b0bd8e6
LOG: add basic unit tests, change types (#4352)
closes #4259
2020-12-25 10:12:20 +01:00
Lars Hvam
7a2ac816c5
use cl_abap_hmac for calculating md5 (#4355) 2020-12-25 10:10:43 +01:00
Fabian Lupa
e1e039a446
Implement jump for CUS1 (#4354) 2020-12-24 12:55:47 +01:00
Fabian Lupa
dac05e5eb6
Implement jump for CUS0 (#4353) 2020-12-24 10:01:25 +01:00
Lars Hvam
4b2309f952
zif_abapgit_html, remove uses of char1 (#4351) 2020-12-24 08:36:58 +01:00
Marc Bernard
a3ce719b0c
Remove unnecessary constructors (#4341)
* Remove unnecessary constructors

A constructor that redefines the super constructor but only calls the super constructor with the same parameters is unnecessary and can be removed

https://github.com/abaplint/abaplint/issues/1417

* Lint

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2020-12-22 07:05:13 +01:00
Marc Bernard
c74ca9eb4c
TABL: No structure comparison for global temp tables (#4347)
Closes #4081

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2020-12-22 06:52:58 +01:00
Marc Bernard
73cba7ff1b
Fix sorting of objects in repo view (#4346)
Regression of #4087. Closes #4339

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2020-12-22 06:47:45 +01:00
Jānis B
6e4982f417
fix creation of TR entries for uninstalled PROGs (#4343)
* fix creation of TR entries for uninstalled PROGs

Fixes creation of CTS Transport Request entries for PROG Objects uninstalled from transportable package.

* Abaplint Fixes

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2020-12-22 06:44:46 +01:00
Marc Bernard
d289439411
Update docs about parallel processing (#4348)
- No parallel processing in standalone version
- Requires logon group config for developer version
2020-12-22 06:41:50 +01:00
dependabot-preview[bot]
47d8d93b3a
Update eslint requirement from ^7.15.0 to ^7.16.0 (#4344)
Updates the requirements on [eslint](https://github.com/eslint/eslint) to permit the latest version.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.15.0...v7.16.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-12-21 09:22:10 +01:00
Lars Hvam
e6ef63a489
unit testing test (#4326)
* unit testing test

* update deps

* update deps

* update deps

* update deps

* update deps

* update deps

* upd

* remove empty keyword

* update deps

* update deps

* whitespace

* update deps
2020-12-20 10:42:28 +01:00
jan-jezek
158d1e27b7
Serialise only main language for ENHS and ENHO objects (#4337)
* Add language parameter to sotr

* Added language parameter to accomodate change

* Abaplint fixes

* Abaplint

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

* Abaplint

* abaplint bot

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

* abaplint bot

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

* Removed iv_language from object

* Method call without parameter name

Co-authored-by: Jan Jezek <jan.jezek@sap.com>
Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>
Co-authored-by: Lars Hvam <larshp@hotmail.com>
2020-12-18 11:11:24 +01:00
Lars Hvam
0003d8b85e
update ajson with writer (#4255)
* update ajson with writer

* update to latest

* fix exceptions

* convert exception
2020-12-18 09:55:57 +01:00
Marc Bernard
4402ed8cab
Add refresh after failed uninstall (#4334)
* Add refresh after failed uninstall

If uninstall does not complete successfully, the old state of the repo will be shown. This will refresh the state and properly show which objects were deleted and which still remain.

* Update src/zcl_abapgit_repo_srv.clas.abap

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

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2020-12-16 15:09:29 +01:00
Marc Bernard
a0736db371
Add description of creating test repo (#4335)
Co-authored-by: Lars Hvam <larshp@hotmail.com>
2020-12-16 08:27:10 +01:00
Marc Bernard
f1bf013adf
Refactor: GUI router state transfer (#4336)
Moving page-dependent state changes to separate methods for clarity
2020-12-16 08:23:00 +01:00
Lars Hvam
643db383b0
syntax: move unit tests (#4333)
syntax highligting, move unit tests for abap to abap class, xml to xml class

this avoids having cyclic references, previously HIGHLIGTER called FACTORY which instantiated ABAP which inherited from HIGHLIGTER
2020-12-15 16:31:20 +01:00
Marc Bernard
01a2363c72
ENHO: Implement missing deserialize for WDYC (#4332)
* ENHO: Implement missing deserialize for WDYC

Related to #3586

* Downport

* Update src/objects/enh/zcl_abapgit_object_enho_wdyc.clas.abap

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

Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>
Co-authored-by: Lars Hvam <larshp@hotmail.com>
2020-12-15 10:23:02 +01:00
Marc Bernard
8e6fe2c785
Fix: Several repos for same URL (#4330)
Regression from #4313:
Fix "Malformed URL" error if at least one offline repo exists

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2020-12-15 08:09:35 +01:00
Marc Bernard
744ce9efce
Align naming of object super classes (#4327)
* Align naming of object super classes

- SAXX_SUPER for SAMC %26 SAPC
- W3XX_SUPER for W3HT %26 W3MI

* Delete old classes

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2020-12-15 08:05:11 +01:00
Sercan K.D
55ee890080
Fix missing i_suppress_dialog parameter syntax error in 731 system (#4328)
* Fix missing i_suppress_dialog parameter syntax error in 731 system

* replace cx_root with cx_sy_dyn_call_param_not_found

* revert back to cx_root because checks have failed

"Statement does not exist in ABAPv702(or a parser error)"

* Revert "revert back to cx_root because checks have failed"

This reverts commit 73b9b2aa6f.

* replace cx_root with cx_sy_dyn_call_param_not_found, sorry i didn't see that extra quote character, should be fine now.

* fix whitespace

Co-authored-by: larshp <larshp@hotmail.com>
2020-12-15 08:00:29 +01:00
Christian Günter
0e4f29efa1
New Repo: Check package existence before showing popup (#4323)
* New Repo: Check package existence before showing p

* fix lint errors

* fix linter

* add more unit tests

* refactor unit tests

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2020-12-14 14:54:28 +01:00
Marc Bernard
c6f6ddb17e
VIEW: Fix deserialize of maintenance views (#4317)
Maintenance views can have dependencies on tables with foreign keys. Such cases can lead to errors during deserialize since the foreign key relationships between tables are processed only in the "late" step.

This fix moves the processing of maintenance views (viewclass = c) to the "late" step.

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2020-12-14 14:52:50 +01:00
Marc Bernard
cfb813f3cd
Update "Adding Icons" documentation (#4314)
Update after https://github.com/abapGit/icon-font/pull/12

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2020-12-14 14:43:44 +01:00
Lars Hvam
1643bdabe5
unit testing test (#4298)
* update deps

* update deps

* update deps

* update deps

* update deps

* update deps

* update deps

* update deps

* update deps

* update deps
2020-12-14 09:27:42 +01:00
Marc Bernard
ac1c3baa0d
Fix typo "odd" > "of" (#4316) 2020-12-13 08:29:28 +01:00