Releases: bristol-su/support
Releases · bristol-su/support
v3.0.2
v3.0.2 - 11/03/2020
Changed
- Removed the global scope from a connection when being accessed through a module instance service.
v3.0.1
v3.0.1 - 28/02/2020
Added
- BristolSU\Support\Testing\HandlesAuthorization to help with testing modules with permissions
v3.0
v3.0 - 22/02/2020
Overview
- Filter::options() must return a FormSchema not an array
- CompletionCondition::options() must return a FormSchema not an array
- Module instances and activities may be disabled and enabled
- Created user ID is saved alongside the activities, module instances, logic groups and action instances
- Modules may specify what type of resource they require: user, group or role
- Model revisions to track changes in the SDK
Changed
- Filter::options() should now return a \FormSchema\Schema\Form class
- Filter::toArray() converts the FormSchema to a Vue Form Generator schema
- Updated all filters supplied by the SDK
- CompletionCondition::options() should now return a \FormSchema\Schema\Form class
- ModuleBuilder calls toArray on the completion condition as opposed to casting itself.
- Activity Repository::active() now returns only activities that are enabled
Added
- Implement CompletionCondition::toArray and ::toJson for converting completion conditions to array/json representations.
- enabled column to the activities and module_instances tables
- enabled scope to an Activity model
- enabled scope to a Module Instance model
- \BristolSU\Support\ModuleInstance\ModuleInstanceRepository::allThroughActivity() to get all module instances for an activity
- \BristolSU\Support\ModuleInstance\ModuleInstanceRepository::allEnabledThroughActivity() to get all enabled module instances for an activity
- user_id column to an Activity, Module Instance, Action Instance and Logic Group
- 'For' property to a Module model. This property is either user, group or role and allows modules to, e.g., require a group to be logged in to use the module.
- HasRevision trait for tracking model revisions in the SDK
- \BristolSU\Support\Completion\Contracts\CompletionConditionTester::evaluatePercentage method added for getting the percentage complete of a completion condition
v2.1
v2.1 - 05/02/2020
Added
- .gitattributes file
- \BristolSU\Support\User\UserRepository::getById method for retrieving a user by ID
- \BristolSU\Support\User\UserRepository::setRememberToken to set a users remember token
- \BristolSU\Support\User\User::getEmailForVerification to get the email to use for verification
- \BristolSU\Support\User\User::getEmailForPasswordReset to get the email to use for password resets
v2.0.1
v2.0.1 - 05/02/2020
Added
- Integration to use a user as a notifiable in the laravel framework, for mail
v2.0
v2.0 - 04/02/2020
Added
- doctrine/dbal dependency for editing migrations
- Logout function for UserAuthentication
- UserRepository::getWhereEmail function to retrieve a user via email
- UserRepository::getFromControlId function to retrieve a user via control ID
- UserRepository::getFromRememberToken function to get by remember token
- Functions to get the control user from the database user
Removed
- Forename, surname, email and student ID columns from database user model.
- UserRepository::getWhereIdentity function
v1.1
v1.1 - 30/01/2020
Changed
- Bumped the control dependency to version 1 (stable)
- Allow Module Instance Setting values to be null
Fixed
- Refresh the module builder instance in the factory
Added
- Laravel Session Authentication. Implementation of Authentication that uses the session to store IDs
Removed
- Laravel Web Authentication
v1.0.1
[v1.0.1 - 23/01/2020]
Changed
- Connection ID attribute is now fillable for a module instance service
- Prefer stable dependencies