-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
[WIP] Move to new QueryBuilder #186
Open
allejo
wants to merge
39
commits into
master
Choose a base branch
from
feature/pixie-port
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains 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
allejo
force-pushed
the
feature/pixie-port
branch
4 times, most recently
from
February 5, 2018 07:38
d05df7c
to
85286dd
Compare
allejo
force-pushed
the
feature/pixie-port
branch
from
February 7, 2018 08:37
1f1c57c
to
1862227
Compare
allejo
force-pushed
the
feature/pixie-port
branch
3 times, most recently
from
February 9, 2018 06:57
4b0f1f7
to
b3acf3c
Compare
Redirect models with wrong alias when bzion.site.url_type === 'permalink'bzion/src/Model/AliasModel.php Lines 100 to 105 in b0f41c2
This comment was generated by todo based on a
|
allejo
force-pushed
the
feature/pixie-port
branch
from
February 10, 2018 08:30
e693095
to
e678df9
Compare
Make this work for PDO, or deprecate it if not neededLines 159 to 164 in 456aeef
This comment was generated by todo based on a
|
When PHP 5.x support is dropped, replace Exception with ThrowableLines 366 to 371 in 456aeef
This comment was generated by todo based on a
|
allejo
force-pushed
the
feature/pixie-port
branch
from
February 10, 2018 10:07
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.
allejo
force-pushed
the
feature/pixie-port
branch
from
April 10, 2018 04:19
d487e6c
to
0f24bc0
Compare
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
.status
columns 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 theSET
column type is not part of the SQL standard.Progress
Model migration to new QueryBuilder and new status convention.
Closes #163