ce-template-backend merge requestshttps://gitlab.esss.lu.se/ccce/dev/ce-template-backend/-/merge_requests2024-03-27T13:35:44Zhttps://gitlab.esss.lu.se/ccce/dev/ce-template-backend/-/merge_requests/166CE-2351: Create table for operation logs2024-03-27T13:35:44ZDomonkos GulyasCE-2351: Create table for operation logs* A new table has been created via a Flyway script to store operation logs.
* All on-the-fly generated logs have been migrated to that table.
* The operation log endpoint now fetches the database instead of a generated log.
* Log the ste...* A new table has been created via a Flyway script to store operation logs.
* All on-the-fly generated logs have been migrated to that table.
* The operation log endpoint now fetches the database instead of a generated log.
* Log the steps of the IOC creation into the database.
Closes CE-2351Domonkos GulyasDomonkos Gulyashttps://gitlab.esss.lu.se/ccce/dev/ce-template-backend/-/merge_requests/165CE-2604: Fix miscalculation of instance count in metrics2024-03-22T13:05:20ZDomonkos GulyasCE-2604: Fix miscalculation of instance count in metricsThe "all instance calculation" have been fixed. Previously, it showed the count of all generated revisions.
Closes CE-2604The "all instance calculation" have been fixed. Previously, it showed the count of all generated revisions.
Closes CE-2604Domonkos GulyasDomonkos Gulyashttps://gitlab.esss.lu.se/ccce/dev/ce-template-backend/-/merge_requests/164CE-2352: History table for IOC Type2024-03-25T14:41:29ZDomonkos GulyasCE-2352: History table for IOC TypeA new table '`ioc_type_history`' has been created to store the history entries for IOC types. In the same flyway script, a CREATED entry has been added to the history table for all existing IOC types. Also, an endpoint has been added to...A new table '`ioc_type_history`' has been created to store the history entries for IOC types. In the same flyway script, a CREATED entry has been added to the history table for all existing IOC types. Also, an endpoint has been added to query the history of an IOC type.
Closes CE-2352Domonkos GulyasDomonkos Gulyashttps://gitlab.esss.lu.se/ccce/dev/ce-template-backend/-/merge_requests/163Resolve CE-2622 "Introduce git userinfo endpoint"2024-03-21T13:21:14ZImre TothResolve CE-2622 "Introduce git userinfo endpoint"Introducing a new endpoint to get basic info about users to show avatar, name,... on the (log) overview page - jut like in the D&M toolIntroducing a new endpoint to get basic info about users to show avatar, name,... on the (log) overview page - jut like in the D&M toolImre TothImre Tothhttps://gitlab.esss.lu.se/ccce/dev/ce-template-backend/-/merge_requests/162CE-2624: Disallow hyphens in IOC type and instance names2024-03-21T10:09:29ZDomonkos GulyasCE-2624: Disallow hyphens in IOC type and instance namesThe regular expression that validates IOC type and instance names has been modified to disallow hyphens. The tests has been also updated accordingly.
Closes CE-2624The regular expression that validates IOC type and instance names has been modified to disallow hyphens. The tests has been also updated accordingly.
Closes CE-2624Domonkos GulyasDomonkos Gulyashttps://gitlab.esss.lu.se/ccce/dev/ce-template-backend/-/merge_requests/161CE-2597: Add Status for Operation overview2024-03-18T08:28:59ZImre TothCE-2597: Add Status for Operation overviewAdding Operation status to the Operation list endpoint.
Also added a new Status Enum (partially_failure) which is not stored in DB - but calculated. Only show this value when all instance generation has finished, and some of them failed,...Adding Operation status to the Operation list endpoint.
Also added a new Status Enum (partially_failure) which is not stored in DB - but calculated. Only show this value when all instance generation has finished, and some of them failed, some of them succeeded.Imre TothImre Tothhttps://gitlab.esss.lu.se/ccce/dev/ce-template-backend/-/merge_requests/160CE-2242: Store config and type revision in the operation table2024-03-18T12:52:32ZDomonkos GulyasCE-2242: Store config and type revision in the operation tableA new Flyway script has been added to migrate template and config revisions to the `operation` table from the `ioc_instance` table.
Closes CE-2242A new Flyway script has been added to migrate template and config revisions to the `operation` table from the `ioc_instance` table.
Closes CE-2242Domonkos GulyasDomonkos Gulyashttps://gitlab.esss.lu.se/ccce/dev/ce-template-backend/-/merge_requests/159CE-2551: Improve processing speed for revision generation2024-03-14T09:08:55ZDomonkos GulyasCE-2551: Improve processing speed for revision generationThe TaskExecutor has been modified to create a new single-threaded executor for each operation, allowing different operations to run concurrently. Additionally, the output project generation was very slow when querying the existing outpu...The TaskExecutor has been modified to create a new single-threaded executor for each operation, allowing different operations to run concurrently. Additionally, the output project generation was very slow when querying the existing output project, so it was also modified to check in the database instead of through the GitLab API.
Closes CE-2551Domonkos GulyasDomonkos Gulyashttps://gitlab.esss.lu.se/ccce/dev/ce-template-backend/-/merge_requests/158CE-2567: Prepare for new release2024-03-13T08:08:39ZAnders Lindh OlssonCE-2567: Prepare for new releaseRelease notes: https://confluence.esss.lu.se/x/oSvDHQ
QA: https://jira.esss.lu.se/browse/CE-2565Release notes: https://confluence.esss.lu.se/x/oSvDHQ
QA: https://jira.esss.lu.se/browse/CE-2565Anders Lindh OlssonAnders Lindh Olssonhttps://gitlab.esss.lu.se/ccce/dev/ce-template-backend/-/merge_requests/157CE-2544: Copy PLC extension files2024-03-12T12:58:40ZImre TothCE-2544: Copy PLC extension filesCopy the .plc extension file(s) found in the "root folder" of the template repo to the instance(s).Copy the .plc extension file(s) found in the "root folder" of the template repo to the instance(s).Imre TothImre Tothhttps://gitlab.esss.lu.se/ccce/dev/ce-template-backend/-/merge_requests/156CE-2374: Introduce logical delete for IOC type2024-03-20T08:15:17ZDomonkos GulyasCE-2374: Introduce logical delete for IOC typeA `deleted` flag has been added to the `ioc_type` table. The queries have been modified to return only non-deleted entries. The operations of the deleted items can still be seen. I have transformed the current delete function into a logi...A `deleted` flag has been added to the `ioc_type` table. The queries have been modified to return only non-deleted entries. The operations of the deleted items can still be seen. I have transformed the current delete function into a logical delete and added another endpoint for permanent deletion (purge). Additionally, I have added an endpoint to restore IOC types. The GitLab projects associated with types are archived in the case of logical deletion.
Closes CE-2374Domonkos GulyasDomonkos Gulyashttps://gitlab.esss.lu.se/ccce/dev/ce-template-backend/-/merge_requests/155CE-2583: Add description for IOC Types2024-03-08T09:27:08ZImre TothCE-2583: Add description for IOC TypesAdding description to the IOC types when user creates it.
Description should be shown on the Type list, and details page.
Description should be modifiable by admin.Adding description to the IOC types when user creates it.
Description should be shown on the Type list, and details page.
Description should be modifiable by admin.Imre TothImre Tothhttps://gitlab.esss.lu.se/ccce/dev/ce-template-backend/-/merge_requests/154CE-2403: Store and retrieve timezone info for every date2024-03-08T09:03:12ZDomonkos GulyasCE-2403: Store and retrieve timezone info for every dateAll `timestamp` types in the database has been converted to `timestamp with timezone` and set to the default UTC. Additionally, timezones are also included in the dates in HTTP responses.
Closes CE-2403All `timestamp` types in the database has been converted to `timestamp with timezone` and set to the default UTC. Additionally, timezones are also included in the dates in HTTP responses.
Closes CE-2403Domonkos GulyasDomonkos Gulyashttps://gitlab.esss.lu.se/ccce/dev/ce-template-backend/-/merge_requests/153Resolve CE-2532 "Change modify ioc type request"2024-03-04T14:08:24ZImre TothResolve CE-2532 "Change modify ioc type request"Remove the possibility to change/update an IOC Type template-, or config git repoRemove the possibility to change/update an IOC Type template-, or config git repoImre TothImre Tothhttps://gitlab.esss.lu.se/ccce/dev/ce-template-backend/-/merge_requests/152CE-2337: Fix incorrect Git project ID type in DB2024-03-04T14:02:20ZDomonkos GulyasCE-2337: Fix incorrect Git project ID type in DBCloses CE-2337Closes CE-2337Domonkos GulyasDomonkos Gulyashttps://gitlab.esss.lu.se/ccce/dev/ce-template-backend/-/merge_requests/151CE-2121: Rename owner field2024-02-29T09:42:24ZImre TothCE-2121: Rename owner fieldRenaming the owner field to created_by for the Type table, and for the API.Renaming the owner field to created_by for the Type table, and for the API.Imre TothImre Tothhttps://gitlab.esss.lu.se/ccce/dev/ce-template-backend/-/merge_requests/150CE-2310: Store max version number in the IOC type table2024-02-28T10:04:02ZDomonkos GulyasCE-2310: Store max version number in the IOC type tableA Flyway script has been created for adding a new column `max_version` to the `ioc_type` table, and migrating the `MAX(operation.version)` , then removing the `operation.version` column.
Closes CE-2310A Flyway script has been created for adding a new column `max_version` to the `ioc_type` table, and migrating the `MAX(operation.version)` , then removing the `operation.version` column.
Closes CE-2310Domonkos GulyasDomonkos Gulyashttps://gitlab.esss.lu.se/ccce/dev/ce-template-backend/-/merge_requests/149CE-2342: Compress Template server response2024-02-27T08:30:19ZImre TothCE-2342: Compress Template server responseEnable server response compression
Adding Tomcat's original server.xml in the first commit
Modifying the server.xml to enable compression + setting the application properties - if someone runs it natively. Modified dockerfile to overwr...Enable server response compression
Adding Tomcat's original server.xml in the first commit
Modifying the server.xml to enable compression + setting the application properties - if someone runs it natively. Modified dockerfile to overwrite original server.xml file
Closes CE-2342Imre TothImre Tothhttps://gitlab.esss.lu.se/ccce/dev/ce-template-backend/-/merge_requests/148CE-2342: Compressing Template responses2024-02-22T11:00:08ZImre TothCE-2342: Compressing Template responsesEnabling response compression in Tomcat along with the running the app natively.
First commit: Save original server.xml from Tomcat
Second commit: modifying the server.xml, and overwriting the original file. And enabling the compression...Enabling response compression in Tomcat along with the running the app natively.
First commit: Save original server.xml from Tomcat
Second commit: modifying the server.xml, and overwriting the original file. And enabling the compression when the application is being run natively.
Closes CE-2342Imre TothImre Tothhttps://gitlab.esss.lu.se/ccce/dev/ce-template-backend/-/merge_requests/147Resolve CE-2516 "Async git info from instances"2024-02-20T08:45:05ZImre TothResolve CE-2516 "Async git info from instances"Modified the operation instance response to give back git_project_id instead of the resolved URL which makes the response generation faster.
Also modified the response instance_name to not to concatenate it by the FE.Modified the operation instance response to give back git_project_id instead of the resolved URL which makes the response generation faster.
Also modified the response instance_name to not to concatenate it by the FE.Imre TothImre Toth