Skip to content

Case found where Compass Component migration tool is NOT idepotent, will fail to update most components #38

@jtcsProjHub

Description

@jtcsProjHub

Although the README file indicates that multiple executions of the migration script will not create multiple Compass Components of the same name, it does in fact do just that.

Additionally, of the 95 components it created in Compass, the first pass of the script was only able to successfully replace 6 of those components within the Jira Work Items for the target project. I reran the script an hour later just in case there was some backend Atlassian database caching issue or something (like you see with JSM Asset updates), and the script:

  1. Created a duplicate Compass Component for most of the items. I honestly don't know what the logic was behind what was duplicated and what wasn't. All of the Compass Components existed following the first run.
  2. Associated 14 components to the project instead of the 6 it did the first time
  3. Those 14 components didn't completely include the ones from the first run of the script

I'll look through the script in more detail to see if I can figure anything out. Changes that I had made before running it:

  1. Changed the component type to OTHER
  2. Added a team ID for ownership to the GraphQL

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions