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

Replace two almost identical classes with user_exception_selector #2

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

daniil-berg
Copy link
Contributor

  • Use a custom constructor for convenience and type safety
  • Require skipauth argument in the constructor to differentiate
  • Generalize find_users algorithm
  • Remove unneeded file key from get_options return array (since it is not necessary to require the source file explicitly)
  • Add set_exceptions_for_selected_users convenience method
  • Drastically simplify manage.php as a result

@daniil-berg daniil-berg self-assigned this Oct 23, 2024
classes/user_exception_selector.php Outdated Show resolved Hide resolved
classes/user_exception_selector.php Outdated Show resolved Hide resolved
classes/user_exception_selector.php Show resolved Hide resolved
classes/user_exception_selector.php Outdated Show resolved Hide resolved
- Use a custom constructor for convenience and type safety
- Require `skipauth` argument in the constructor to differentiate
- Generalize `find_users` algorithm
- Remove unneeded `file` key from `get_options` return array (since it
  is not necessary to `require` the source file explicitly)
- Add `set_exceptions_for_selected_users` convenience method
- Drastically simplify `manage.php` as a result
@daniil-berg daniil-berg force-pushed the simplify-user-exception-class branch from 20bccca to f416ced Compare October 29, 2024 12:53
@daniil-berg daniil-berg merged commit f416ced into main Oct 30, 2024
6 checks passed
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