Skip to content
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

Stew ro/check tag type and region catagory compatibility #241

Conversation

stew-ro
Copy link
Contributor

@stew-ro stew-ro commented May 5, 2020

The only condition needed is: "selected region equals tag category or tag is free" right?

!this.isSelectionMark(selectedRegions[0].category) && !this.isSelectionMark(tag.type)
will become a problem

@stew-ro stew-ro closed this May 5, 2020
@stew-ro stew-ro deleted the stew-ro/check-tag-type-and-region-catagory-compatibility branch May 5, 2020 23:39
@stew-ro stew-ro restored the stew-ro/check-tag-type-and-region-catagory-compatibility branch May 5, 2020 23:39
@stew-ro stew-ro reopened this May 5, 2020
@stew-ro stew-ro changed the base branch from master to alex-krasn/fix-do-not-show-not-compatible-tag-type-changes-#182 May 5, 2020 23:41
@stew-ro stew-ro requested review from alex-krasn and kunzms May 5, 2020 23:41
@stew-ro stew-ro merged commit c947d74 into alex-krasn/fix-do-not-show-not-compatible-tag-type-changes-#182 May 6, 2020
@stew-ro stew-ro deleted the stew-ro/check-tag-type-and-region-catagory-compatibility branch May 6, 2020 00:30
alex-krasn added a commit that referenced this pull request May 6, 2020
* fix: we're not allowing change tagtype if it is a checkbox

* refactoring: deletes console.log

* refactoring: delets comment

* + not allow to change tag type to "checkbox"

* refactoring: deletes extra brackets

* fix: let  -> const

* fix prev review issues + added warning toast

* fix: failing pipeline test

* refactoring

* refactor: spelling "service"

* refactor: switching to is empty(temporary), disabling options instead of removing, updates state on change

* refactor: renaming fix test on pipelines

* refactor: now with documentCount

* style: deletes empty line

* refactor: delete 'isEmpty'

* style: fix variable to camelcase

* refactor

* refactor: switching tag types to enum

* refactor: switch statement

* Stew ro/check tag type and region catagory compatibility (#241)

* refactor: check tag type and region catagory compatibility

* refactor and spelling

Co-authored-by: alex-krasn <v-alexkr@microsoft.com>

* feature: no more than one checkbox per tag

* refactor: add compatibilty method and refactor

* refactor

* spelling

* style: missing trailing comma

* refactor: isCompatible

Co-authored-by: stew-ro <60453211+stew-ro@users.noreply.github.com>
Co-authored-by: kunzheng <58841788+kunzms@users.noreply.github.com>
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.

2 participants