aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-model
AgeCommit message (Collapse)AuthorFilesLines
2023-01-23Disable editing of normative data typesMichaelMorris1-1/+6
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-4341 Change-Id: Id7673624032883c641e05fd6e5e3d599f7da14df
2023-01-23Fix ability to add property to data type of different modelJvD_Ericsson2-0/+49
Issue-ID: SDC-4339 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: Ibc5b57a042ffc4e7f914d46ad264a0e16081b863
2023-01-19Download data type from UIKrupaNagabhushan2-0/+42
Issue-ID: SDC-4332 Signed-off-by: KrupaNagabhushan <krupa.nagabhushan@est.tech> Change-Id: If31f7a95eb2d568e716760a33ef2641bad09cf68
2023-01-19Fix 'Primitive types should not be shown under data types in catalog'-bugvasraz1-13/+6
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: Ic20f7c5a0784c2107061f268c5c2e03ab34c13cc Issue-ID: SDC-4338
2023-01-17Improve test coveragevasraz5-13/+9
- extract duplicated code - remove redundant and unused code Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: I7ae3592951f53bbebf10a80f7cce22d54b2940b6 Issue-ID: SDC-4317
2023-01-10Fix resource property constraint values mutable in Service designJvD_Ericsson11-1/+26
Issue-ID: SDC-4290 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: Ica942b7a8bb1f03cbf6baec709135287e31def06
2023-01-03Provide tosca function to custom datatypes of list and mapimamSidero1-0/+10
Providing the capability to add tosca function as the custom datatypes of list and map Issue-ID: SDC-4311 Signed-off-by: Imam hussain <imam.hussain@est.tech> Change-Id: I7ec8943d8008440b091fc4eaa2aba49cdadcda8d
2023-01-03Upgrade testing frameworks to latest not-vulnerable versionsvasraz2-58/+61
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: Ie68290a79d075132c73e6cc9e82b9dbda92fbe8c Issue-ID: SDC-4313
2023-01-03Improve message for constraints different errorsvasraz3-113/+170
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: I8babb10de4f0f25a49998fda077a7bb2554f86ba Issue-ID: SDC-4305
2023-01-03Fix 'NPE thrown in editing constraints'-bugvasraz9-163/+82
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: Ibbd8a3baa2a2bfdbd6e2c235db5a1d59875f3e6e Issue-ID: SDC-4312
2022-12-21Multitenancy in SDCKartik Hegde10-1/+30
Issue-ID: SDC-4215 Change-Id: Ie24ba38acc9f1998d4a7e722e8f98456dab9201d Signed-off-by: Kartik Hegde <kh00735564@techmahindra.com>
2022-12-20Add support comparable type constraints for scalar valuesvasraz6-215/+526
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: I57234399f23721506d308dfb8351067845ebe892 Issue-ID: SDC-4305
2022-12-14Fix bug 'Pattern constraint validation failure'vasraz5-9/+25
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: If7c59aa37db974c57195775f963c8400cf474a51 Issue-ID: SDC-4294
2022-12-12Add support for comparable type constraints for stringsvasraz2-11/+4
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: I3b52c720968ab8333fa2ec81b13c3d0e7b2f4316 Issue-ID: SDC-4299
2022-12-12Fix bug 'Import VFC with constraint PATTERN ignores constraint'vasraz1-116/+119
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: I9e390a7978fd6e0d60b55c2b4ebc7fb3ea99a562 Issue-ID: SDC-4291
2022-12-09Fix NPE when checking out serviceMichaelMorris1-1/+1
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-4303 Change-Id: I512f3502ff2451749c2fbc590d08c3a10b3bef79
2022-12-07Fix in_range constraint validation gives unhelpful error messageJvD_Ericsson1-1/+1
Issue-ID: SDC-4293 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: If31fb515987c2e6c040e4fbf1d00ca4f669ed525
2022-12-02Fix numeric constraint values generated as stringsJvD_Ericsson20-277/+1062
When importing a vfc the property constraints are now checked to see if they are the same type as the property If not it will attempt to convert to that type Issue-ID: SDC-4274 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: I32c1d930166d10142ad9ca6914550c7946e9128c
2022-12-01Support addition of pattern constraintJvD_Ericsson2-0/+20
Issue-ID: SDC-4260 Change-Id: I2eccf88472c144d8f595a9d8ec028705e924fd67 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech>
2022-11-30Support addition of scalar type constraintsJvD_Ericsson2-4/+10
this also supports the addition of the in_range and the valid_values constraints, and supports delete and editing of current and added constraints Issue-ID: SDC-4223 Change-Id: I5ffb4d17d9f8c2730f650153fb4ff89eccfdd474 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech>
2022-11-25Fix issues while importing a Servicevasraz2-2/+2
The import service was ignoring the selected model for imported nodes. It was also trying to set a different icon for resources that already exist in the database, creating a validation error. There was also a nullpointer in relation to not found capability. Change-Id: Ifa9320c5554bbf5e8fed0cc2e2dea6b05503d213 Issue-ID: SDC-4266 Signed-off-by: André Schmid <andre.schmid@est.tech> Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
2022-11-25Implement create data type propertyandre.schmid7-49/+168
Allows to add a new data type property and visualize the properties details. Change-Id: Ib7bcd4b0bd8213dbe8ee8a3762a0636e22dc67eb Issue-ID: SDC-4258 Signed-off-by: André Schmid <andre.schmid@est.tech>
2022-11-23Fix property constraints validationfranciscovila1-1/+1
Fix property constraints validation behaviour when a property is not required shouldnt be validated vs constraints if no value is provided. Also add constraints validation for length measures in list, map and string types. Issue-ID: SDC-4222 Signed-off-by: franciscovila <javier.paradela.vila@est.tech> Change-Id: I48ebb46b3de9ddac3d9dd91400ea0fad983aa94d
2022-11-17Fix wrong Model during import VSPvasraz1-1/+0
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: I0cea47f26f5fe3e38b54c94e05dec8649ad58159 Issue-ID: SDC-4268
2022-11-08Interface is formatted using extended notation when no implementation added ↵vasraz3-99/+0
at VFC level Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: I4e6e6d61b851fe2efaa47c9f8fad0cb546f2fcb7 Issue-ID: SDC-4255
2022-11-03Fix for boolean default value exported as StringimamSidero1-1/+1
Exporting all primitive type as expected types for complex type default values in tosca export Issue-ID: SDC-4237 Signed-off-by: Imam hussain <imam.hussain@est.tech> Change-Id: I0dc7009922dc0ada5b946e2fcd0b96b495fa9b62
2022-10-29Step version to 1.12.1MichaelMorris1-1/+1
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-4238 Change-Id: I3797ce38210c4c2ecd00e4a6ab3d7fd846f97aa0
2022-10-27Fix potential NPE in importing property constraintsvasraz1-76/+81
Fix potential NPE introduced by https://gerrit.onap.org/r/c/sdc/+/131472 Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: I10a6f40e5a36c7a1eb33ed6a24ad3a2356672a64 Issue-ID: SDC-4231
2022-10-26Fix import policy issuesMichaelMorris1-3/+7
The following issues are addressed: When a service is imported containing polices, a new name for the policy is generated instead of using the name from the imported service When a service is imported containing policies with a string value set for a property of a policy, then the value is created in the new service surrounded with quotes NPE when service imported with no instances NPE when service imported with instances with no requirements Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-4224 Change-Id: I8403c0564796a045816ae28e52961688ca7804db
2022-10-25Add default baseType to the substitution typeimamSidero2-0/+14
Enabling default baseType in substitution type to be selected Issue-ID: SDC-4229 Signed-off-by: Imam hussain <imam.hussain@est.tech> Change-Id: I869ede4c4e030adc3c4418c28ed787b4c10248dd
2022-10-24Support import of VFCs with property constraintsMichaelMorris11-28/+217
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-4216 Change-Id: I19dce9f929535aa22cad6a1d95a213f42dd6e99c
2022-10-18Fix security risk 'Improper Input Validation'vasraz2-363/+239
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: I6a52148aec3b567db43ec57109214e52d106f73c Issue-ID: SDC-4189
2022-10-17Fix serialization issue with constraintsMichaelMorris2-0/+4
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-4217 Change-Id: If5068ca891df934f600a7c37dc3cffa2aa372a3c
2022-10-17Add data type properties workspaceandre.schmid7-8/+269
Implements the properties workspace for a data type, with the list and filter feature. Change-Id: I2ec337a0481bddd5fe32e45644abdc88e197fa49 Issue-ID: SDC-4214 Signed-off-by: André Schmid <andre.schmid@est.tech>
2022-10-14Align 'org.eclipse.jetty'-version (9.4.49.v20220914)vasraz1-0/+24
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: If56735406d86bd42b57c2ccb1f23699c1685069b Issue-ID: SDC-4189
2022-10-05Implement API for fetching single data typevasraz3-25/+72
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: Icebf660d67d503250e4f6d4d7fd5a2e169cdc951 Issue-ID: SDC-4184
2022-10-04Fix for VFC version update on composition windowimamSidero1-3/+1
On add service - composition window VFC version update/change is fixed by mapping appropriate requirements and capabilities Issue-ID: SDC-4185 Signed-off-by: Imam hussain <imam.hussain@est.tech> Change-Id: I0de616510ca27c511179f1f34cf7290cd584c7c5
2022-09-29Stepping version to 1.12.0 for start of LondonMichaelMorris1-1/+1
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-4155 Change-Id: Ide5c76cbb332dbd03344fdb462e7feef91c9256e
2022-09-28Step version to 1.11.9-SNAPSHOTMichaelMorris1-1/+1
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-4172 Change-Id: If2746847292bd769ef47c4628b5bafa7af2d69b9
2022-09-19Import unknown group types during Service importvasraz15-308/+477
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: Ic435ee0c440dd8ed64339bab08e921687d23b9c0 Issue-ID: SDC-4176
2022-09-19Support TOSCA functions in Node Capability Filtersandre.schmid2-19/+93
Adds support to use TOSCA functions as value in the node capability filters. Removes the current capability filter component to reuse, with a few changes, the node property filters component. Fixes problems with the edition and deletion of node capability filters. Change-Id: Ic91242d6cbc24e2ce0f60b84c63e104575bef8a9 Issue-ID: SDC-4173 Signed-off-by: André Schmid <andre.schmid@est.tech>
2022-09-16Import unknown artifact types on Service ImportimamSidero1-1/+1
creating non existing artifact types added in the import files on service import Issue-ID: SDC-4153 Signed-off-by: Imam hussain <imam.hussain@est.tech> Change-Id: I477cbc76dece828bc9eee96e66cd24a71fc8c2bb
2022-09-09Fix node filter API payload retro-compatibility1.11.8andre.schmid4-2/+88
The create/edit API was not converting properly a legacy payload and the request was failing. Also, the create/edit response was not being handled as previously when the legacy payload was given. Change-Id: Ic0832cd31ca450806a053ae96889538bf7e8daca Issue-ID: SDC-4174 Signed-off-by: André Schmid <andre.schmid@est.tech>
2022-09-09Import services with sub prop tosca functionsMichaelMorris1-0/+3
Includes fix for setting sub properties to yaml values other than maps Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-4168 Change-Id: I15e3c450c10d4603f882c20f2da80cb7b5d80bb6
2022-09-08Support TOSCA functions in Node Filtersandre.schmid29-158/+572
Adds support to use tosca functions as value in the node property filters and substitution filters Change-Id: Id242691cc9ddd233245b58f052b9f0e2c7bbd66b Issue-ID: SDC-4128 Signed-off-by: André Schmid <andre.schmid@est.tech>
2022-09-06Support import of updated node typesJvD_Ericsson4-0/+108
Support addition of new properties Issue-ID: SDC-4131 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: I9f12d0f4f9727c33f8444980b780758533e714cf
2022-09-02Support updated data types in service importMichaelMorris10-42/+138
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-4140 Change-Id: Ib66d47a0f566b648722ce86cfc4e208880551a29
2022-08-26Remove vulnerable dependencyvasraz1-1/+5
Remove/update org.apache.tinkerpop:gremlin-core Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: Id41e2d0d089e5071c9923297c55bf31d9a57189f Issue-ID: SDC-4017
2022-08-19Fix wrongly generated tosca implementationKrupaNagabhushan2-5/+4
Issue-ID: SDC-4130 Signed-off-by: KrupaNagabhushan <krupa.nagabhushan@est.tech> Change-Id: I23ea03fded3d82006b98b0d42be928ac38513276
2022-08-19Support Inputs during Import Servicevasraz1-8/+8
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: Ifc761d607a5d3c11187486fec3133be44c2d38b0 Issue-ID: SDC-4082