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

Feature award trigger interface #4

Merged
merged 19 commits into from Jul 24, 2019
Merged

Conversation

Spraynard
Copy link
Owner

This pull request should introduce a much more user friendly interface to building the trigger string for an award in the New/Update Award pages that are available on the admin area of this plugin.

Should also provide some unit tests that make sure awards are being assigned when we use the interface.

…what you actually need to put down. Maybe give tooltips or something on hover of these labels
…emoving the trigger descriptor class.

I called the fact that there was way too much abstraction happening. After not looking at this code for about a good 3 or 4 months I couldn't really understand why I needed such a lame class. That, and the fact that I was basically forcing my trigger string to have an unneded "key" really made me mad.
So, I removed the key, which takes away the need to even parse that part of the string. Now the trigger descriptor is just a single value that doesn't need to be handled by any resource other than the trigger, which is where it should be.
@Spraynard Spraynard added the enhancement New feature or request label Jul 21, 2019
@Spraynard Spraynard added this to the Update to version 0.2.0 milestone Jul 21, 2019
@Spraynard Spraynard self-assigned this Jul 21, 2019
…g out the test logic.

The three types of listener functionality we were testing were on whether or not the listener could give awards based on whether user meta was assigned, created, or updated on a user.
We have separated this out into three specific files that allow us to add tests that more specifically go towards this functionality.
Merging in a fix for issue #3 by adding in tests to check that this behavior does not occur again.

Fixing the issue by using the `is_numeric()` php function in `UserAwards\Grammar\Trigger.php` file.
@Spraynard
Copy link
Owner Author

Issue #8 now has to be fixed before we can continue

Added a method to PluginParser that tells whether or not a grammar is acceptable based on what is filled out
In order to have a defined set of constants for use on the front end of the admin page, I needed to build more constants. These are located in constants.php.
MetaBoxes plugin logic uses these constants in order to build up the interface used for our award triggers.
@Spraynard Spraynard merged commit acccc66 into master Jul 24, 2019
@Spraynard
Copy link
Owner Author

Issue #9 should be fixed as well. Pretty big bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant