Skip to content

Conversation

@MyPyDavid
Copy link
Member

@MyPyDavid MyPyDavid commented May 17, 2024

Description

Related issue: #995

Motivation and Context

How has this been tested?

Screenshots (if appropriate)

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

Checklist

  • I have read the contributor guide.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Signed-off-by: David Wallace <david.wallace@tu-darmstadt.de>
@MyPyDavid MyPyDavid added this to the RDMO 2.2.0 milestone May 17, 2024
@MyPyDavid MyPyDavid self-assigned this May 17, 2024
@jochenklar
Copy link
Member

Oh crap, we had a similar thing with the options before. Thanks for fixing!

@jochenklar
Copy link
Member

Conditions need the same treatment:

        ]).then(([element, attributes, optionsets, options,
                  pages, questionsets, questions, tasks]) => {
          if (elementAction == 'copy') {
            delete element.optionsets
            delete element.pages
            delete element.questionsets
            delete element.questions
            delete element.tasks
          }
          return ({
            element, attributes, optionsets, options, pages, questionsets, questions, tasks
          })
        })

@jochenklar
Copy link
Member

Optionsets need to remove questions.

@MyPyDavid
Copy link
Member Author

do Options also need to remove conditions?

Signed-off-by: David Wallace <david.wallace@tu-darmstadt.de>
@MyPyDavid MyPyDavid requested a review from jochenklar May 21, 2024 14:24
@MyPyDavid MyPyDavid marked this pull request as ready for review May 22, 2024 07:39
@jochenklar
Copy link
Member

Option does not have a condition field, so I would say no.

@jochenklar
Copy link
Member

It does not harm either.

@MyPyDavid MyPyDavid merged commit 930e9f0 into dev-2.2.0 May 28, 2024
@MyPyDavid MyPyDavid deleted the 995-bug-in-management-for-copy-attribute-related-items-are-copied-along branch May 28, 2024 07:37
@MyPyDavid MyPyDavid linked an issue Jun 6, 2024 that may be closed by this pull request
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.

bug in management for copy attribute, related items are copied along

3 participants