-
-
Notifications
You must be signed in to change notification settings - Fork 373
TfsWorkItemTypeValidatorTool – use field mapping and field value mapping in validation #3010
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
721f763
to
4a1f5a2
Compare
I do not know why, but tests are failing because of authorization.
|
Lokley a token expiring. At the moment test data is live data |
Shoudl be good to go now |
This PR solves the last two items in improve work item type validation list.
Validation now respects field mapings (
FieldToFieldMultiMap
andFieldToFieldMap
) and field value mappings (FieldValueMap
) ofFieldMappingTool
. ForFieldToFieldMap
mappings only the ones withSourceToTarget
mapping mode are used.Configuration for validator
TfsWorkItemTypeValidatorTool
has changed a bit:SourceFieldMappings
is removed, This existed only to define field mappings between source and target. Now real mappings fromFieldMappingTool
are respected.FixedTargetFields
was removed. It is not needed and it was not really good because it worked with target fields and basically we validate source fields in target work item type.ExcludeSourceFields
was added. Basically it replaces previous two properties and it is a list of source fields which will be excluded from validation.Fields excluded from validation
ExcludeSourceFields
are not really excluded. They are still validated so user knows if there are some issues, but even when the issues are found, they are reported only as information instead of warning and the field itself is considered valid. This is especially useful, if the user still wants to migrate such a field, but it is not possible to define simple mapping for it. For example user will be notified, that the fieldX
do not exist in target, but will configure it as excluded and defineFieldMergeMap
for this field.There was a tip, that
FieldSkipMap
can also be used, but it is not possible. This mapping type is for target fields and we need to skip fields in source work item types.Example log outputs
I tried to log as much thing as possible, so the user will know what to do.
Field exists and is valid
Field is mapped and is valid
Field is missing in target
Allowed values for field are missing in target
Field is excluded from validation
Final log if there are any issues