Skip to content

Conversation

@sawpresto
Copy link

When running the migration for processes with both inherited and custom groups and fields, the order isn't retained so that custom fields are always last. This PR will keep the order of the fields and groups so that they are the same when migrating processes.

@msftclas
Copy link

msftclas commented Sep 9, 2019

CLA assistant check
All CLA requirements met.

Copy link
Contributor

@liang2zhu1 liang2zhu1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks you raising this PR - looks good to me !


for (const control of group.controls) {
for (let controlIndex = 0; controlIndex < group.controls.length; controlIndex++) {
let control = group.controls[controlIndex];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit - use const than let ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you referring to changing to const control = groups.controls[controlIndex];? It looks like the compiler won't allow changing const controlIndex = 0; controlIndex < group.controls.length; controlIndex++ because it can't be incremented as constant.

@sawpresto
Copy link
Author

@liang2zhu1 Will this get merged or is the project inactive now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants