stable

Clone or download

Read-only

chore: convert Open List model initializer to TypeScript

part of request #22648 Convert AngularJS directives and controllers to hybrids web components No functional change expected in Open List fields in the artifact modal: - You can still select and unselect static values and add a new one - You can still search users, select and unselect them - You can still select and unselect user groups - Default values are displayed and selected at creation. They are saved on submit - No crash on anonymous user (you can enter an email address in open list bound to users) Change-Id: I5aadfce35e90723f7e763d0abe93e19fd0cec7db

Modified Files

Name
M plugins/document_generation/scripts/lib/docx/src/Artifact/artifacts-structure-retriever.test.ts +20 −11 Go to diff View file
M plugins/document_generation/scripts/tracker-cross-report-action/src/Data/transform-field-value-into-formatted-cell.test.ts +8 −8 Go to diff View file
M plugins/document_generation/scripts/tracker-report-action/src/DocumentBuilder/create-export-document.test.ts +8 −8 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/adapters/REST/fields/open-list-field/open-list-field-initializer.ts +177 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/static-open-list-field/StaticOpenListValueModel.ts +29 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/user-group-open-list-field/UserGroupOpenListValueModel.ts +29 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/user-open-list-field/UserOpenListValueModel.ts +32 −0 Go to diff View file
D plugins/tracker/scripts/lib/artifact-modal/src/fields/open-list-field/open-list-field-initializer.js +0 −58 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/model/field-values-formatter.js +1 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/model/field-values-formatter.test.js +104 −30 Go to diff View file
M plugins/tracker/scripts/lib/rest-api-types/src/artifacts.ts +32 −9 Go to diff View file
A plugins/tracker/scripts/lib/rest-api-types/src/open-list-field.ts +69 −0 Go to diff View file
M plugins/tracker/scripts/lib/rest-api-types/src/trackers.ts +5 −3 Go to diff View file