Allow importing single records with selected jobProfile

Description

  1. Update copycatprofile.json:

  • add array for allowedCreateJobProfileIds 

  • add array for allowedUpdateJobProfileIds

Update copycatimports.json:

  • add selectedJobProfileId field

Add validation for selected profile (if it is null or empty - use default, check if selected is listed in the allowed jobProfiles for the used CopyCatProfile)

When new copycat profile is created and there is no lists for allowedCreateJobProfileIds and allowedUpdateJobProfileIds in the body - initialise arrays and fill in with default values from createJobProfileId and updateJobProfileId

Update/add necessary tests

Increment minor versions for copycat-imports and copycat-profiles interfaces, update dependencies on these interfaces (ui-inventory)

Environment

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:
Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Folijet

Fix versions

Release

Orchid (R1 2023)

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created November 17, 2022 at 2:28 PM
Updated February 16, 2023 at 2:48 PM
Resolved December 22, 2022 at 9:13 AM
TestRail: Cases
TestRail: Runs