Open
Conversation
d05df7c to
85286dd
Compare
1f1c57c to
1862227
Compare
4b0f1f7 to
b3acf3c
Compare
e693095 to
e678df9
Compare
456aeef to
0682c18
Compare
- Update model construction to fetch database values using the new query builder - Add new getActiveModels() function to allow models to define how to define "active" models - Redesign eager and lazy columns to return an array of column names
A system model is one that is maintained entirely by BZiON and does not allow users to edit values. For example, the Permission model is stored in the database, however, it is only maintained BZiON through migrations for removing or adding new permissions.
This method will find and pick the first result matching the query. Only a single Model will be returned; an invalid Model if the query returns nothing.
- In addition to migrating to the new Query Builder, the Server model has gotten some new columns allowing us to classify servers based on their purpose. e.g. Match server vs replay server - The form view for Server models have also been updated to allow edits for server types.
- Bump QueryBuilderFlex to use PHP 7 type-hinting
The get() method of the query builder is the heart of getting results from the database. Override the method to ensure all queries are tracked by our query manager.
d487e6c to
0f24bc0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Shame on me for deciding to sneak in such a huge change to BZiON's core ina planned point release... 😅 BUT Deeeeeeeeploy Jenkins!
This PR has been reassigned to a 0.11.0 release
This PR is dedicated to the restructuring of model statuses in the database and introducing a new query builder, powered by Pixie.
QueryBuilderFlex.statuscolumns for models has been deprecated.is_deleted,is_draft,is_public). By making this switch, it'll also allow us to support more databases in the future since theSETcolumn type is not part of the SQL standard.Progress
Model migration to new QueryBuilder and new status convention.
Closes #163