Commit Graph
100 Commits
Author SHA1 Message Date
Maurizio Vitale 63886d5262 Use the right path for testing (#8343) 2023-03-06 16:18:27 +00:00
Maurizio Vitale 8567b147be Use as default prod (#8342)
* Use as default prod

* remove restricted
2023-03-06 15:54:49 +00:00
Maurizio Vitale 52a733d2a2 [AAE-12870] use gh action to publish (#8317)
* use gh action to publish

* revert and rely on action

* Use token as part of workflow

* Use token as part of workflow

* remove useless file
2023-03-06 15:12:44 +00:00
Maurizio Vitale 2dccde9e6b publish on gh first (#8314) 2023-02-23 17:06:17 +00:00
Maurizio Vitale 7d02ea61a2 Publish the adf pkgs on gh pkg registry (#8313) 2023-02-23 16:33:48 +00:00
Maurizio Vitaleandalfresco-build 90c8cb3add Cron - Separate cron e2e from upstream and for different repo (#8300)
* separate cron e2e from upstream and for different repo

* remove useless env

---------

Co-authored-by: alfresco-build <alfresco-build@hyland.com>
2023-02-22 14:30:29 +00:00
Maurizio Vitaleandalfresco-build b876102098 trigger upstream daily for hxp monorepo (#8298)
* trigger upstream daily for hxp monorepo

* add a develop test

* add a trigger

* Fix inputs

* [trigger adf]

* check value

* remove develop and merge

---------

Co-authored-by: alfresco-build <alfresco-build@hyland.com>
2023-02-20 14:36:04 +00:00
Maurizio Vitaleandalfresco-build 384628197e Being able to upstream alfresco-apps or alfresco-applications (#8280)
* Being able to upstream alfresco-apps or alfresco-applications

* Use alpha as default

---------

Co-authored-by: alfresco-build <alfresco-build@hyland.com>
2023-02-16 13:18:47 +00:00
Maurizio Vitale eb8bad1f96 [AAE-12124] Use a function to remove js files (#8157)
* Use a function to remove js files

* try to check the asset
2023-01-17 14:47:50 +00:00
Maurizio Vitale f654fdf008 [AAE-1274] CI opt - Build only core/content/process storybook (#8139)
* Build only core/content/process storybook

* Use a target and run only if affected

* Do not run any storybook e2e
2023-01-12 16:18:38 +00:00
Maurizio Vitale 2dd0d19d03 Run release only on merge and upstrem on cron (#7951) 2022-11-04 16:34:58 +00:00
Maurizio Vitale 1ced5e8705 Use npm bin/nx (#7950) 2022-11-04 14:32:55 +00:00
Maurizio Vitale 7c04b59ddb Remove unused scripts. Yeahgit add . (#7946) 2022-11-04 14:23:38 +00:00
Maurizio Vitale d1c82edb9d [AAE-11279] Pipeline - Build libs and apps in the same stage and avoid install (#7943)
* Build libs and apps in the same stage and avoid install

* Reduce install and affect all
2022-11-03 12:16:11 +00:00
Maurizio Vitale 0459e4eb0c Exclude build apps from merge 2022-11-03 11:11:48 +00:00
Maurizio Vitale 45159544a1 Split the build from release (#7945) 2022-11-03 10:42:49 +00:00
Maurizio Vitale 3dde18fbd2 Build core as usual and pretheme after build 2022-11-02 18:25:19 +00:00
Maurizio Vitale 84332cbe56 Bump version before building 2022-11-02 15:49:48 +00:00
Maurizio Vitale b6f1ea528c Remove useless echo 2022-11-02 15:09:15 +00:00
Maurizio Vitale 711eaa34a4 Use npx to run nx 2022-11-02 14:01:39 +00:00
Maurizio Vitale 8ca604e250 Bump lib version after build (#7941) 2022-11-02 13:41:51 +00:00
Maurizio Vitale 4c92545d80 Move check bundle after release npm (#7940) 2022-11-02 11:40:03 +00:00
Maurizio Vitale 1c46bb83a0 [AAE-11259] Pipeline - Decoupling the build from release (#7935)
* Decoupling the build from release

* test if we are still able to release on npm and docker

* Split docker tag from deploy

* Fix storybook

* Decouple build lib/apps from releasing

* Remove useless or
2022-11-02 11:31:54 +00:00
Maurizio Vitale 68d6d15142 Deprecate commit sha (#7936) 2022-11-01 16:36:13 +00:00
Maurizio Vitale c2cdd90d99 Move the cli bundle under dist/libs/cli (#7937) 2022-11-01 16:23:51 +00:00
Maurizio Vitale 8b94caafef [AAE-11255] adf-cli - Get rid of the build-testing and call copydist when needed (#7933)
* Get rid of the build-testing and call copydist when needed

* Use the relative path instead of node_modules and avoid to build cli/testing in the before e2e

* Try to build cli and testing as part of install

* Build cli and testing before e2e

* Copy cli bundle under dist

* Copy cli bundle under dist

* Copy testing into node_modules to fix protractor.js

* Created a bundle target to handle build and move of cli/testing

* Change from build target to something custom to avoid to exclude the packages

* Remove the build-testing.sh script
2022-11-01 11:28:44 +00:00
Maurizio Vitale cebe2501fa [AAE-11253] adf-cli - Get rid of build cli (#7932)
* Get rid of build cli

* Remove duplication

* Remove build-cli.sh script
2022-10-31 13:55:52 +00:00
Maurizio Vitale 65e0961a18 [AAE-10835] adf-cli Being able to pass params as input to handle custom cases (#7880)
* Being able to pass params as input to handle hxp

* Fix default

* Fix lint

* Use a default value for tokenEndpoint for compatibility

* Fix the lint
2022-10-31 13:20:15 +00:00
Maurizio Vitale 5dac8cbe2e Return exit 0 in case of cron (#7871) 2022-09-30 14:58:46 +01:00
Maurizio Vitale 8e9cb07cde rename the schame appconfig (#7805) 2022-09-02 15:06:43 +01:00
Maurizio Vitale b2ac4b4169 Not anymore used (#7802) 2022-08-31 13:28:23 +01:00
Maurizio Vitale 109e99786b Short circuit e2e in case lib not affected (#7801)
* Short circuit e2e in case lib not affected

* Use base and head

* Remove useless schema

* Run everything on cron
2022-08-30 16:07:55 +01:00
Maurizio Vitale 4a39161ad3 Run everyting in case of CRON 2022-08-26 15:28:06 +01:00
Maurizio Vitale 38e9cc9f41 Run e2e only when lib affected (#7791) 2022-08-26 15:24:19 +01:00
1fa81962a0 👽 Angular 14 rebase 👽 (#7769)
* fix after rebase

* new release strategy for ng next

Signed-off-by: eromano <eugenioromano16@gmail.com>

* peer dep

Signed-off-by: eromano <eugenioromano16@gmail.com>

* Angular 14

fix unit test and storybook

Signed-off-by: eromano <eugenioromano16@gmail.com>

fix after rebase

Signed-off-by: eromano <eugenioromano16@gmail.com>

update pkg.json

Signed-off-by: eromano <eugenioromano16@gmail.com>

missing dep

Signed-off-by: eromano <eugenioromano16@gmail.com>

Fix mistake and missing code

Dream....build only affected libs

Add utility run commands

* Use nx command to run affected tests

* Fix nx test core

fix content tests

Run unit with watch false

core test fixes

reduce test warnings

Fix process cloud unit

Fix adf unit test

Fix lint process cloud

Disable lint next line

Use right core path

Fix insights unit

fix linting insights

Fix process-services unit

fix the extensions test report

fix test warnings

Fix content unit

Fix bunch of content unit

* Produce an adf alpha of 14

* hopefully fixing the content

* Push back the npm publish

* Remove flaky unit

* Fix linting

* Make the branch as root

* Get rid of angualar13

* Remove the travis depth

* Fixing version for npm

* Enabling cache for unit and build

* Fix scss for core and paths

Copy i18 and asset by using ng-packager

Export the theming alias and fix path

Use ng-package to copy assets process-services-cloud

Use ng-package to copy assets process-services

Use ng-package to copy assets content-services

Use ng-package to copy assets insights

* feat: fix api secondary entry point

* fix storybook rebase

* Move dist under dist/libs from lib/dist

* Fix the webstyle

* Use only necessary nrwl deps and improve lint

* Fix unit for libs

* Convert lint.sh to targets - improve performance

* Use latest of angular

* Align alfresco-js-api

Signed-off-by: eromano <eugenioromano16@gmail.com>
Co-authored-by: eromano <eugenioromano16@gmail.com>
Co-authored-by: Mikolaj Serwicki <mikolaj.serwicki@hyland.com>
Co-authored-by: Tomasz <tomasz.gnyp@hyland.com>
2022-08-25 10:50:30 +01:00
Maurizio Vitale 7e7e026b81 Add the missing options (#7758) 2022-08-10 10:05:31 +01:00
Maurizio Vitale d8d1119495 use flexibleConnectedTo and remove deprecated (#7747) 2022-08-04 17:40:56 +02:00
Maurizio Vitale 46420ea0b2 [AAE-9169] adf-cli - Change the doc and add clientId input (#7730)
* Change the doc and add input

* fix mistake
2022-07-28 14:02:43 +02:00
Maurizio Vitale 4c249c8106 Fix path to call adfShaVerify 2022-07-27 12:46:41 +02:00
Maurizio Vitale d3ae78d855 [AAE-10077] ADF's cron job, make it smarter by avoiding publishing on NPM and triggering the PR upstream (#7725)
* Avoid the publish on NPM and create useless PR upstream if same ADF sha

* Remove useless file
2022-07-26 21:24:50 +02:00
Maurizio Vitale 23a76e0e79 [AAE-9462] Being able to add contributors of the current upstream (#7705)
* Being able to add contributors of the current upstream

* Fix typo

* Fix comments
2022-07-08 16:13:30 +01:00
Maurizio Vitale 52445b6e3e [AAE-9370] Add manageruser to default apps (#7698)
* Add manageruser to default apps

* Try to ignore resource file to avoid affected
2022-07-01 14:20:49 +01:00
Maurizio Vitale ae2c156c0e [AAE-9382] SSOGuard - Call the acs user only in case of ECM (#7696)
* Call the acs user only

* Fix and add unit test
2022-07-01 14:20:40 +01:00
e27833d770 [AAE-9019] - People/Group cloud with HxP (#7658)
* Cover the use cases by mocking them

* Replace the mock with real stream and remove useless code

* Provide new service to fetch groups

* Fix group tests

* Use the interface and token injection

* [AAE-8870] add unit test and mock for new service

* Improve roles condifion

* initialize the stream as part of NgOnInit to be sure it relies on the correct FormControl instance(input)

* Rollback tmp change for roles

* [AAE-8641] people abstraction mock

* [AAE-8641] revert angular.json changes

* [AAE-8641] few conditions and code improvements

* [AAE-8641] revert change input controls name

* [AAE-8641] initialize the stream as part of ngOnInit

* [AAE-8641] people abstraction improvements

* [AAE-8870] cherry pick people abstraction

* [AAE-8641] fix people-group e2es

* fix lint

* remove hardcoded identityHost

* Use the identityhost api in case of cloud

* Solve issue with returnType array string

* Rebase and use GroupModel from cloud

* Rebase and use GroupModel from cloud

* Use the bpmHost instead of identityFor

* Add identity ingress for user access service

* Rename test

* Fix linting issues

* Fix playwright storybook e2e for people and group

* Trigger travis

* Fix people group e2e

* improved formatting

* Remove not needed travis var override

* Remove unused import after rebase

* Make roles in filter optional + remove comments

Co-authored-by: Tomasz <tomasz.gnyp@hyland.com>
Co-authored-by: arditdomi <ardit.domi@hyland.com>
2022-06-28 16:21:59 +01:00
Maurizio Vitale 28a47e83d2 Fetch the userInfo once loggedIn and expose the capability of admin (#7682)
* Fetch the userInfo once loggedIn and expose the cabilibility of admin

* Rollback method

* Return same use if defined

* Use the same pepleContent service for UserInfoCOmpnent

* Remove useless import

* Use interface

* Use angular resolver instead of guard

* Remove fdescribe

* Fix linting

* Regenerate doc

* Improve doc

* Fix optional

* Fix the unit test

* Fix comment

* Fix lint

* Fix unit

* Add fetch user as part of the ssoGuard

* Fix unit test after fetch

* Add additional unit

* Fix await
2022-06-27 12:02:01 +01:00
Maurizio Vitale 851e153080 Fix the nx path to avoid installing it globally (#7681)
* fix nx path

* fix nx

* fix nx

* fix nx

* fix nx

* fix nx

* fix nx
2022-06-22 09:16:22 +01:00
Maurizio Vitale d996aadbcc Transform e2e into unit (#7671) 2022-06-20 09:29:55 +01:00
Maurizio Vitale 3e5069434b [ADF-5494] Remove useless imports (#7678)
* Remove useless imports

* rollback constants

* Remove useless variable
2022-06-16 12:53:40 +01:00
Maurizio Vitale d4779360d8 use default profile email as scope (#7639) 2022-05-18 12:27:05 +01:00
Maurizio Vitaleandarditdomi cec9297e14 [AAE-8639] Discovery OpenId - Load discovery and pass info to jsapi (#7632)
* Load discovery and pass info to jsapi

* fix the roles empty scenario tests

* Make lint happier

* Rename the initApi method

* Add secret field

Co-authored-by: arditdomi <ardit.domi@hyland.com>
2022-05-13 19:03:06 +01:00
Maurizio VitaleandMichalFidor 9ff1f65841 [AAE-8061] Fix the group restriction for people widget (#7601)
* FIx the restrinction

* Fix unit test about restricted groups

* Add a small sleep to make it green

* Add sleep to other checks

* Remove sleeps, improve assertions

Co-authored-by: MichalFidor <michal.fidor@hyland.com>
2022-04-26 15:29:06 +01:00
Maurizio Vitale 54ce6de79d Fail in case of error (#7550) 2022-03-15 09:12:44 +00:00
Maurizio Vitale bac506e09c Give the ability to specify a different sso host from the gateway (#7535) 2022-03-02 11:41:37 +00:00
Maurizio Vitale f995284bb8 Allow to trigger upstream on demand 2022-03-02 09:49:25 +00:00
Maurizio Vitale 0a18ec61a9 Being able to load a dynamic file location (#7456) 2022-01-19 13:07:27 +01:00
Maurizio Vitale 910a7cb877 AAE-6809 Expose property for custom dockerfile name (#7445) 2022-01-13 12:37:50 +01:00
Maurizio Vitale 6861e5320e [AAE-6162][AAE-6163] Add the storybook target to core and content (#7303)
* Add the storybook target to core and content

* Remove test story
2021-10-22 16:06:43 +01:00
Maurizio Vitale a31f86f57b [AAE-6202] Create a stories lib to make all the adf stories available (#7314)
* Create a stories lib to make all the adf stories available

* Run the test with a diff ext type

* sunc nx file
2021-10-22 14:48:48 +01:00
Maurizio Vitale 33dbfbe94f Rollback change on sh 2021-10-13 12:59:54 +01:00
Maurizio Vitale 70476da76c Check if args is array or string 2021-10-13 12:52:45 +01:00
Maurizio Vitale db6a638a2d [AAE-6099] Storybook deploy image on quay.io (#7288)
* Try to build on travis

* Use the new quay repository called storybook

* Build and release demoshell and storybook toghether
2021-10-08 14:52:29 +01:00
Maurizio Vitale 3bcc106a0d Enable the storybook for process-services-clod (#7286) 2021-10-08 11:48:28 +01:00
Maurizio Vitale 09a2aab424 Since the ccs variable fix only adf-core has the theming.scss 2021-10-07 11:37:07 +01:00
Maurizio Vitale e1dbcdf7b6 Use the local built cli and not the one from npm 2021-10-07 10:49:08 +01:00
Maurizio Vitale dc133643c9 Fetch the appName context from window instead of fetching it from env variable (#6631)
* Fetch the appName context from window instead of hardcode it

* Remove useless file

* Get rid of the redirectUri variable

Until now the context of the app was created on the backend side and stored on the variable redirectUri. With this fix the context is determined by the FE

* remove useless docker variable

remove 
APP_CONFIG_OAUTH2_REDIRECT_LOGIN
APP_CONFIG_OAUTH2_REDIRECT_LOGOUT
the origin and context will be determined by the FE

* Update 30-sed-on-appconfig.sh

removing APP_CONFIG_OAUTH2_REDIRECT_LOGOUT and APP_CONFIG_OAUTH2_REDIRECT_LOGIN
2021-10-06 16:18:57 +01:00
Maurizio Vitale cab016046a [AAE-5560] ProcessServiceCloudModule - be able to inject a different preference service instance (#7185)
* be able to inject a different preference service instance

* retrigger
2021-07-29 10:00:47 +02:00
Maurizio Vitale 453198c1e8 Attemp number 2 (#7016) 2021-05-11 16:57:32 +01:00
Maurizio Vitale 8dde72dbb8 Use the cloud key (#7005) 2021-05-10 22:41:34 +01:00
Maurizio Vitale a1ae3ae8c8 docker command: Create 2 different actions publish and link (#6907)
* Create 2 different action publish and link

* use enum

* Use publish as default action

* Check if action is valid

* Add back compatibility
2021-04-09 16:27:27 +02:00
Maurizio Vitale 262ba0f6be Remove the pathProject as mandatory (#6905) 2021-04-07 10:18:03 +01:00
Maurizio Vitale c58366d08e Move the upstream to a lower level (#6804) 2021-03-10 18:52:18 +01:00
Maurizio Vitale 6974873288 Revert "[ADF-5354] Content node selector is not working properly for read-only folders (#6777)" (#6801)
This reverts commit e21b777a3c.
2021-03-09 20:13:07 +01:00
Maurizio Vitale c152df30ab [ACA-4322] Logout - Avoid the redirect in case SSO auth (#6780)
* Avoid the redirect in case of sso

* Move the code into the if
2021-03-05 09:46:21 +00:00
Maurizio Vitale 1b39828b46 Override the pr title in case already exists (#6725) 2021-02-24 14:20:07 +00:00
Maurizio Vitale 3fd2f22fed Remove useless properties (#6462) 2021-02-24 13:38:58 +00:00
Maurizio Vitale fc275e82d0 Add the PR number to easly identify the version (#6715) 2021-02-22 13:46:05 +00:00
Maurizio Vitale 3f268bd5ff [AAE-4701] ADF check env - Fail if the env is not reachable (#6714)
* Fail if the env is not reachable

* Remove useless file
2021-02-22 13:11:55 +00:00
Maurizio Vitale 75f011292e [ACA-3881] Able to start form with preselected ACS nodes (#6700)
* Move the node to ps before loading

* Add unit test on start process with preseleted nodes

* Fix unit test

* Wrap calls and improve if

* Add type
2021-02-19 13:25:03 +00:00
Maurizio Vitale 66f4dbd5a5 Avoid to recall the method if no change detect is affected (#6688) 2021-02-16 17:29:15 +00:00
Maurizio Vitale 3c5d5dc02d [ADF-5332] Login basic auth - Ability to override the successRoute from app.config.json (#6651)
* ability to override successRoute from app.config

* Add basic doc

* Reset the appconfig

* Rebase and handle login errors

* Remove the  default route /

* remove space
2021-02-12 16:03:10 +00:00
Maurizio Vitale 0804ff1539 Check if the order matters (#6593) 2021-01-28 17:11:23 +00:00
Maurizio Vitale cfe1eabc2d improve the init by failing in case the app are not running (#6591) 2021-01-28 13:59:39 +00:00
Maurizio Vitale a5e41e8492 handle the logout route based on app config (#6587) 2021-01-28 13:09:37 +00:00
Maurizio Vitale 419fc166c4 Do redirect before implicit button (#6574)
* Do redirect before implicit

* Add unit to implicit and silent

* Keep the value as it was before
2021-01-25 17:06:35 +00:00
Maurizio Vitale b3e88356d3 Revert "[AAE-4384] Add blank page component (#6559)" (#6566)
This reverts commit b11ef04e73.
2021-01-22 15:23:56 +00:00
Maurizio Vitale 5712b50d62 [ADF-5324] - Expose a new adf-cli command to initialise acs-env (#6551)
* Expose a new adf-cli command to initialize acs-env

* Use latest js api

* consume the latest js-api

* Use the previous commander version
2021-01-21 14:22:24 +00:00
Maurizio Vitale 31254a73eb Add await in the cli init aps env 2021-01-18 15:40:07 +00:00
Maurizio Vitale 8dd43ef4af adf-cli init aps env - Upload the APS default app (#6538)
* use only 1 js api

* skip tslint

* Remove the acs content to be moved in a different init script

* Remove useless variable

* Remove useless import
2021-01-18 10:40:35 +00:00
Maurizio Vitale 08fec7f1a6 adf-cli init-aae-env - Add request as dependency (#6518)
* Add request as dep

* Rigenerate the lock
2021-01-11 15:11:48 +00:00
Maurizio Vitale b54f1480bf Push the image with tag (#6504) 2021-01-07 14:13:35 +00:00
Maurizio Vitale 2047ba09fa Revert "Fixed floating promise error (#6336)" (#6503)
This reverts commit 2a5b6a5b70.
2021-01-07 14:13:04 +00:00
Maurizio Vitale 7e24aba3c6 Add all-tags as additional option (#6502) 2021-01-07 11:48:24 +00:00
Maurizio Vitale 8d4408f2d6 Build the docker image only once and create tag link (#6496) 2021-01-07 10:42:33 +00:00
Maurizio Vitale fa61639f45 Fix the if condition on namespaces (#6280) 2020-10-26 10:25:32 +00:00
Maurizio Vitale 6de13bb4b7 Fix typo on namespace (#6252) 2020-10-15 18:27:35 +01:00
Maurizio Vitale aabc086ac6 Return the createUrlTree to see the redirect (#6243) 2020-10-13 17:35:54 +01:00
Maurizio Vitale 01fb4fa2b6 Override the redirectTo with the loginFragment (#6239)
* Override the redirectTo with the loginFragment

* Add check
2020-10-12 23:40:25 +01:00
Maurizio Vitaleandadomi 7c83f2eb18 [AAE-3199] - Add support for searchable content model properties (new search filters panel in the attach file widget) (#6134)
* Create new panel component and search refactoring

* Replace

* First refactoring - Fix global search and service injection issues

* More refactoring

* Fix service injection - create one new instance for content-node-selector component

* Avoid having more services extending BaseQueryBuilderService

* more refactoring, remove injecting the SearchQueryBuilderService from the content node selector service

* Fix build errors to launch unit tests

* Fix existing unit tests

* Fix wrong import and constructor injection comments

* Fix wrong import

* Fix comments

* Fix api compatibility

* Revert demo shell causing e2e fail

Co-authored-by: adomi <ardit.domi@alfresco.com>
2020-10-01 09:11:23 +01:00
Maurizio Vitale c40614f211 [AAE-3410] NodeSelector - Use user alias (-my-) name as default for upload of type Alfresco Content only (#6160)
* Use as default folder root in case is only ACS

* Fix and improve unit test

* Use user alias -my- for Content Service only
2020-09-27 10:26:48 +01:00
Maurizio Vitale 98742e898e [ACA-3973] K8s - namespaces - Replace all the occurrences (#6155)
* Replace all the occurrences

* Add more log
2020-09-23 11:59:42 +01:00