324 Commits

Author SHA1 Message Date
Denys Vuika
e97333aabd
[PRODENG-211] reworked version updating (#9104)
* update js-api package metadata

* cleanup

* improve script loop

* cleanup dead code

* Revert "cleanup dead code"

This reverts commit f0de08acf89cfe1dfd568b77438eff60e48ec486.

* cleanup dead code

* cleanup

* cleanup dead code

* reduce scripts

* cleanup script

* better naming

* cleanup

* minor fixes

* code improvements and fixes

* minor improvements

* fix js-api upgrades

* reusable version generator

* fix variable overwrite

* reduce code duplication

* fix version generation for build number

* cleanup
2023-11-22 11:33:05 +00:00
Denys Vuika
4b3e101586
[PRODENG-211] update npm bundle check (#9103)
* update js-api bundle check

* rework bundle checks
2023-11-21 13:56:00 +00:00
Denys Vuika
ea2c0ce229
[PRODENG-211] integrate JS-API with monorepo (part 1) (#9081)
* integrate JS-API with monorepo

* [ci:force] fix token issue

[ci:force] migrate docs folder

[ci:force] clean personal tokens

* [ci:force] gha workflow support

* [ci:force] npm publish target

* fix js-api test linting

* [ci:force] fix test linting, mocks, https scheme

* [ci:force] fix https scheme

* [ci:force] typescript mappings

* [ci:force] update scripts

* lint fixes

* linting fixes

* fix linting

* [ci:force] linting fixes

* linting fixes

* [ci:force] remove js-api upstream and corresponding scripts

* [ci:force] jsdoc fixes

* fix jsdoc linting

* [ci:force] jsdoc fixes

* [ci:force] jsdoc fixes

* jsdoc fixes

* jsdoc fixes

* jsdoc fixes

* [ci:force] fix jsdoc

* [ci:force] reduce code duplication

* replace 'chai' expect with node.js assert

* replace 'chai' expect with node.js assert

* [ci:force] remove chai and chai-spies for js-api testing

* [ci:force] cleanup and fix imports

* [ci:force] fix linting

* [ci:force] fix unit test

* [ci:force] fix sonar linting findings

* [ci:force] switch activiti api models to interfaces (-2.5% reduction of bundle)

* [ci:force] switch activiti api models to interfaces

* [ci:force] switch AGS api models to interfaces

* [ci:force] switch AGS api models to interfaces

* [ci:force] switch search api models to interfaces

* [ci:force] switch content api models to interfaces where applicable
2023-11-21 05:27:51 -05:00
Amedeo Lepore
22d3179a55
Revert "[AAE-18105] Fix release workflow: release-npm step doesn't publish al…" (#9092)
* Revert "[AAE-18105] Fix release workflow: release-npm step doesn't publish all the  packages (#9091)"

This reverts commit 17323b0abbee9e9687f5a2902dfa3887094b2305.

* Fix release workflow: publish always all the libs until we don't handle partial release
2023-11-15 16:46:25 +00:00
Amedeo Lepore
17323b0abb
[AAE-18105] Fix release workflow: release-npm step doesn't publish all the packages (#9091) 2023-11-15 16:56:14 +01:00
Eugenio Romano
08da9ae2c3
[AAE-12501] move auth in ADF (#8689)
* remove unneeded JS-API dep
move auth in the right place

* [AAE-12501] Replace alfresco api client with AdfHttpClient

* [AAE-12501] Restore get username methods

* [AAE-12501] Get username with authentication service

* [AAE-12501] Create a request options interface with the needed props, remove the import from js-api, return the body from request

* add emitters

* [AAE-12501] Replace Math.random() to fix hospot security issue, fix lint issues

* [AAE-12501] Comment temporary setCsrfToken because is not possible to import app config service from core due to circular dependencies

* [AAE-12501] Get disableCsrf from app config serviice when app configuration is loaded

* [AAE-12501] Remove wrong character

* Pass down the requestUrl for request interception
bring back check from js-api
fixing isLogin issues part1
some fix around emit
Narrow access for methods
fix sso username issue
Switch to dynamic service injection
add emitters
move auth inside ADF

* clean

* fix unit test

* fix lint

* Fix exports

* Fix process-services unit tests

* Fix core unit tests

Fix core unit tests

Fix core unit tests

Fix core unit tests

Fix core unit tests

Fix core unit tests

Fix core unit tests

* Fix content-services unit tests: getEcmUsername from authentication service

Fix content-services unit tests: alfresco api service has been replaced by authentication service

* Fix circular dependecies issue importing AppConfigService outside the api entrypoint dir

* Import AuthModule even in not only canary mode to let the e2es run

* Fix authentication unit tests

* Fix unit test '[ECM] should return a ticket undefined after logout'

* Remove AlfrescoApiService is not used anymore

* Fix unit test '[BPM] should return an BPM ticket after the login done': add Basic suffix to basicAuth

* Fix unit tests core

* Fix login errors with the BASIC authentication

* Fix missing onLogin event

* Temporary skip unit tests to check e2es

* Fix login component doesn't add the authorization header

* Fix prefix is undefined

* Fix image is not showed by the alfresco file viewer because alf_ticket is not added to the content url query params, pass ticketEcm to the alfrescoApi configuration used by alfrescoApiClient.ts getAlfTicket()

* Fix C280012: set app prefix before calling content api

* Revert "Fix image is not showed by the alfresco file viewer because alf_ticket is not added to the content url query params, pass ticketEcm to the alfrescoApi configuration used by alfrescoApiClient.ts getAlfTicket()"

This reverts commit afbf086b98d72835aab8b15d4af433efeaac2d3b.

* try to change adf core autoamtion service init

* go back

* grant type password login

* fix

* remove automatic login in reset try

* fix not silent login

* lint happy

* fix

* Update alfresco-api-v2-loader.service.ts

* fixint

* Revert "Temporary skip unit tests to check e2es"

This reverts commit a0adc7e58a001a54442c82952761bff891caa5cd.

* fix modules

* fix app config stream in storing service
fix app config stream for sub property

* fix identity test to use the real service

* fix unit

* fix unit

* fix unit

* remove test that are probably have never been green

* fix

* fix PC

* fix localstorage

* fix

* fix

* fix

* fix

* fix storybook
move e2e in content for versioning
fix lint

* fix

* fix size

* enable log

* some fix for usernames

* remove log

* fix rebase

* [AAE-12502] Restore isKerberosEnabled into authentication service

* subject onLogin

* fix unit

* Fix lint issue

* fix

* Update error message

* Revert change did by b79c5d37d6\#diff-ad85723e21276e05e577bab652c6ab0d243bd0ad54d4cc70ef6e60dc5e635c33L38

* Refresh the browser to wait for the user to click process cloud page

* Remove e2e, the application list is already tested by the app-list-cloud.component.spec.ts https://github.com/Alfresco/alfresco-ng2-components/blob/dev-eromano-AAE-12501-2/lib/process-services-cloud/src/lib/app/components/app-list-cloud.component.spec.ts\#L147

* [12502] Add getUsername method to the AuthenticationService

* [12501] restore mutlipart/form-data header needed by angular http-client to to fix 415 unsupported media type

* Revert "[12501] restore mutlipart/form-data header needed by angular http-client to to fix 415 unsupported media type"

This reverts commit d8c584b94f649b57859d74157ec0861f2ebddebb.

* [12501] fix unsupported upload file on admin-apa, append json content type only calling alfresco api

* [12501] fix unsupported upload file on admin-apa

[12501] fix unsupported upload file on admin-apa

* Revert "[12501] fix unsupported upload file on admin-apa"

This reverts commit 53cda21d795588d87244c78c5a5347afd04ea2b1.

* Improve getHeaders

* Revert change

* Set application/json content type if request body is not a FormData

* Logout by the authenticationService

* Update returned error message

* Fix lint issues after rebasing

* [12502] Add basic template with data-automation-ad selector to check when is attached to the Dom

* Fix issues after rebase

---------

Co-authored-by: Amedeo Lepore <amedeo.lepore@hyland.com>
Co-authored-by: Andras Popovics <popovics@ndras.hu>
2023-11-06 14:25:27 +01:00
Mykyta Maliarchuk
8080a0699f
[ACS-6004] Exclude paths from CodeQL analysis (#8905)
* [ACS-6004] added ignored paths to codeql

* [ACS-6004] custom codeql config
2023-09-12 08:57:51 -04:00
Eugenio Romano
9ce8b01914
Update release.yml (#8874) 2023-09-01 14:58:57 +02:00
Eugenio Romano
c73e95c9bf
change script to fix the alpha version overlap (#8869) 2023-08-31 12:35:09 +02:00
Eugenio Romano
1c30eb2814
remove unused action in release (#8867) 2023-08-31 11:20:59 +02:00
Eugenio Romano
bb3000346f
release branch workflow (#8865) 2023-08-31 10:25:12 +02:00
eromano
a66b3d0846 Revert "add branch release"
This reverts commit 79df22043466132b2ff795e468fd26e05b6ffa62.
2023-08-28 15:08:00 +02:00
eromano
79df220434 add branch release 2023-08-28 15:06:45 +02:00
Eugenio Romano
729a65ca5c
Update codeql-analysis.yml (#8843)
Fix warning in codeql
2023-08-23 11:21:36 +02:00
Eugenio Romano
9bddd1a7c3
New grouping Depndabot (#8791) 2023-08-09 12:42:08 -04:00
Maurizio Cacace
8eb43b00ad
HXOR-167: send slack message in case of release failures (#8781)
* HXOR-167: send slack message in case of release failures

* remove username
2023-07-25 10:37:54 +02:00
Rafal Szmit
570b5d53c2
[AAE-15762] downgrade google chrome to 114 (#8770)
* downgrade google chrome to 114

* trigger ci

* apt allow downgrades
2023-07-20 13:09:47 +02:00
Maurizio Vitale
3b3fd5ab9a
run from Mon to Fri (#8729) 2023-07-03 11:40:51 +01:00
Maurizio Vitale
ecbf571451
Revert "test e2e (#8723)" (#8724)
This reverts commit ad8259ece71317d6ac57f29e59020bf6abb8374f.
2023-06-29 19:52:58 +01:00
Maurizio Vitale
ad8259ece7
test e2e (#8723) 2023-06-29 16:47:46 +01:00
Maurizio Vitale
0fa61a2893
[AAE-15499] QA Failure provide more context on slack notification (#8720)
* sharing data with files

* sharing data with files

* disable check

* add shell

* skip step

* skip step

* fix tab

* run e2e

* failing e2e

* failing e2e make fail

* failing e2e make fail

* use js action

* fix template

* test action

* fix

* fix test

* fix test

* use action

* use action fix

* use action fix

* use action fix

* use action fix

* use action fix

* use action fix

* use action fix

* use action fix

* Normal run

* verify slack groups

* verify slack groups

* verify slack groups

* verify slack groups

* refactor

* remove useless code

* remove useless code

* use space as separator

* use space as separator

* use ga channel

* append only for cron

* run e2e job only if affected

* simulate process

* fix logic

* fix logic

* fix output

* almost done
2023-06-29 16:27:10 +01:00
Maurizio Vitale
dabe4ca279
Revert "improve jobs deps (#8717)" (#8722)
This reverts commit 9f8d93ea04efce4d30dc7f7884d03aa653d33203.
2023-06-29 15:55:20 +01:00
Maurizio Vitale
23be41d676
revert use of action (#8718) 2023-06-28 16:09:24 +01:00
Maurizio Vitale
9f8d93ea04
improve jobs deps (#8717)
* improve jobs deps

* remove from old
2023-06-28 16:04:35 +01:00
Maurizio Vitale
567e264d93
simulating a change without code (#8715) 2023-06-28 14:47:36 +01:00
mauriziovitale
4c3b29d5b5 fix lib path 2023-06-28 14:43:24 +01:00
Maurizio Vitale
ee863391e1
[AAE-15422] Publish bundles only if libs are affected by merged code (#8694)
* Publish only if code is affected

* use ncc vercel

* ignore

* ignore

* ignore nodemodules

* remove test

* Update .gitignore only action dist
2023-06-28 14:34:32 +01:00
Tomasz Gnyp
43feb814fd
Fix ADF cronjob slackbot warning message (#8698) 2023-06-23 17:14:43 +02:00
MichalKinas
0fc904eee2
Use latest js-api in each lib package json (#8690)
* Use latest js-api in each lib package json

* Fix lib paths

* Sed save changes
2023-06-22 04:31:29 -04:00
Eugenio Romano
b987898ebe
possible different e2e-host (#8680)
* possible different e2e-host for ps-cloud
2023-06-20 09:34:40 +02:00
Denys Vuika
90aab8e5e8 fix typo in cron yml 2023-06-19 08:38:45 +01:00
Eugenio Romano
b84ea22622
add E2E_IDENTITY_HOST_APA env var (#8677) 2023-06-16 13:07:30 -04:00
MichalKinas
0a3cc5634e
Fix js-api version in adf-cli (#8665)
* Fix js-api version in adf-cli

* Add caret to js-api version

* CR fix
2023-06-14 06:31:41 -04:00
MichalKinas
ecf191f559
[ADF-5546] Fix cron-run input (#8646) 2023-06-12 10:01:08 -04:00
Eugenio Romano
4618901031
Update pull-request.yml (#8648) 2023-06-12 07:00:06 -04:00
Eugenio Romano
e176009be7
Update pull-request.yml (#8639) 2023-06-09 10:35:37 -04:00
MichalKinas
a612263762
[ADF-5546] Don't run forbidden labels job when cron runs e2es (#8632)
* [ADF-5546] Don't run forbidden labels job when cron runs e2es

* [ADF-5546] Correct wording

* [ADF-5546] Fix forbidden labels job condition
2023-06-07 15:45:13 +02:00
Eugenio Romano
826cdf52b9
add slack message on cron fail (#8633) 2023-06-07 15:31:39 +02:00
Eugenio Romano
7eebdb8b11
Update release.yml
increase release timeout
2023-06-06 21:16:15 +02:00
Ardit Domi
06de32ed03
Fix dry run flag (#8627) 2023-06-06 17:06:43 +01:00
AleksanderSklorz
86e9f3f22e
[ACS-5290] create eslint rule to ensure components use none value for encapsulation (#8585)
* ACS-5290 Create rule which prevent using different encapsulation in components than None

* ACS-5290 Added documentation

* ACS-5290 Updated scripts

* ACS-5290 Updated documentation

* ACS-5290 Added autofix

* ACS-5290 Formated code

* ACS-5290 Fixed lint - removed redundant comma

* ACS-5290 Renaming

* ACS-5290 Renaming
2023-06-02 08:04:50 +02:00
Eugenio Romano
959f20b3a5
fix tag work flow (#8618)
upgrade docker build to 18
2023-06-01 18:16:29 +02:00
Eugenio Romano
07e96965aa
Update git-tag.yml (#8615)
use Github bot token to add the tag
2023-06-01 16:49:57 +02:00
MichalKinas
d0b74cfbce
[ACS-5165] Remove old upstream workflow (#8559) 2023-05-15 23:07:39 +01:00
Denys Vuika
94c23171db
[ADF-5509] Migrate to Node 18 (#8531)
* generate lock file

* gha: use node 18

* upgrade lock file and remove old migrations cache

* use npx instead of sudo link for nx commands

* fix dependencies

* migrate commands to node 18

* fix dependencies

* try building storybook sequentially

* fix affected libs

* disable failing test
2023-05-04 22:51:19 +01:00
Dawid L Jablonski
4966bb2d42
[HXOR-200] Standardize dry run flags as dry-run-flag: ${{ inputs.dry-run-flag }} (#8506)
* First change

* new commit
2023-05-03 14:53:10 +02:00
Maurizio Vitale
17631d0b48
Stop PR in case of forbidden label (#8508)
* stop PR in case of forbidden label

* sync PR

* add tmp workflow

* add tmp workflow

* add tmp workflow

* checkout repo
2023-04-24 16:10:11 +01:00
maurizio-cacace
aa9edeff54
hotfix2 2023-04-19 18:28:50 +02:00
maurizio-cacace
1388c07680
hotfix 2023-04-19 18:16:19 +02:00
Maurizio Cacace
0dae4f47c6
AAE-13893 - add condition for master release (#8496)
* add condition for master release

* add condition for master release

* add condition for master release
2023-04-19 18:14:59 +02:00