Skip to content
This repository was archived by the owner on Jul 6, 2022. It is now read-only.

fix: more strict component mapping#447

Merged
atmoio merged 2 commits intomasterfrom
fix/component-url
Oct 6, 2021
Merged

fix: more strict component mapping#447
atmoio merged 2 commits intomasterfrom
fix/component-url

Conversation

@atmoio
Copy link
Copy Markdown
Member

@atmoio atmoio commented Oct 6, 2021

  • Fixes issue where mapping could occur before account data has been downloaded
  • Introduces more strict mapping behavior

@atmoio atmoio requested a review from antsgar October 6, 2021 15:57
@atmoio atmoio marked this pull request as draft October 6, 2021 16:03
@atmoio atmoio removed the request for review from antsgar October 6, 2021 16:03
@atmoio atmoio marked this pull request as ready for review October 6, 2021 16:39
@atmoio atmoio requested a review from antsgar October 6, 2021 16:39
}
break;
);
} else if (!expired || feature.content_type === ContentType.Component) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If I'm following correctly with this logic we won't be creating items for inexistent themes, we'd probably need to remove the second condition here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

We'd only create themes if it is not expired. Otherwise if it is expired, we only proceed with creating an item if Component, because we can mark them as read-only.

This was the previous logic, just rewritten to not use switches and factor out common denominators.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ah don't know why I read the || as an &&, understood now, thanks!

@atmoio atmoio merged commit bb53ffc into master Oct 6, 2021
@atmoio atmoio deleted the fix/component-url branch October 6, 2021 21:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants