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

No longer double negating conditions #763

Merged
merged 1 commit into from
Mar 12, 2020

Conversation

dannylamb
Copy link

@dannylamb dannylamb commented Mar 5, 2020

Github Issue: Resolves Islandora/documentation#1325

What does this Pull Request do?

Stops doing negation logic in our Condition plugins so they can be negated downstream.

What's new?

Less checks using isNegated().

How should this be tested?

Pull down the PR and set up contexts using these Conditions to do something simple like switch themes:

  • EntityBundle
  • MediaHasMimetype
  • NodeHadNamespace
  • NodeHasParent
  • NodeIsPublished

The contexts should behave as expected both normally and when negated.

Interested parties

@Islandora/8-x-committers @qadan

Copy link

@seth-shaw-unlv seth-shaw-unlv left a comment

Choose a reason for hiding this comment

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

Tested each condition with both normal and negated states to change the theme to Bartik. Works as expected. 👍

@seth-shaw-unlv seth-shaw-unlv merged commit c89ff9f into Islandora:8.x-1.x Mar 12, 2020
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