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

[5.x] Ability to log fake queries #9695

Merged
merged 34 commits into from
Apr 1, 2024
Merged

[5.x] Ability to log fake queries #9695

merged 34 commits into from
Apr 1, 2024

Commits on Mar 10, 2024

  1. Configuration menu
    Copy the full SHA
    c72935c View commit details
    Browse the repository at this point in the history
  2. Update stache.php

    JohnathonKoster committed Mar 10, 2024
    Configuration menu
    Copy the full SHA
    1818006 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4f3ea3a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c524230 View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2024

  1. Configuration menu
    Copy the full SHA
    8b71078 View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2024

  1. Configuration menu
    Copy the full SHA
    dd3561a View commit details
    Browse the repository at this point in the history
  2. fix merge

    jasonvarga committed Mar 29, 2024
    Configuration menu
    Copy the full SHA
    3dae5ee View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    dee1b0a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b0dd160 View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2024

  1. Configuration menu
    Copy the full SHA
    5e4f4e7 View commit details
    Browse the repository at this point in the history
  2. Use actual bindings ...

    Uses a real real in-memory sqlite connection. Small price to pay to make it simpler.
    
    Remove config option as we'll now always put values into bindings.
    
    Now that the QueryExecuted event is populated with more realistic data, bindings are automatically populated within the SQL when using Ray.
    jasonvarga committed Mar 30, 2024
    Configuration menu
    Copy the full SHA
    88e2e42 View commit details
    Browse the repository at this point in the history

Commits on Apr 1, 2024

  1. reuse it

    jasonvarga committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    131e08b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    869aae4 View commit details
    Browse the repository at this point in the history
  3. move setting

    jasonvarga committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    929b7ff View commit details
    Browse the repository at this point in the history
  4. tweaks ...

    - rename trait to fakesqueries
    - rework to a closure based method that does the timing etc
    - add to iterator builder
    - pass table name rather than store, and add methods for figuring out the names
    - add to iterator builder (e.g. search)
    jasonvarga committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    5e254ec View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5a4236c View commit details
    Browse the repository at this point in the history
  6. tweaks ...

    - pass the query into the dumper class instead of a bunch of arguments
    - use a method on the trait to get all the appropriate wheres etc for the dumper
    - using that new method, provide the additional where clauses for the entries query that way instead of a "extra from statement"
    - remove dump trait method in favor of creating a new dumper
    jasonvarga committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    7679a6a View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    dcc2825 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    87bdff3 View commit details
    Browse the repository at this point in the history
  9. one-line everything. debugbar is weird when we provide newlines. ray …

    …will format to multiline automatically.
    jasonvarga committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    575954d View commit details
    Browse the repository at this point in the history
  10. wip

    jasonvarga committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    1bf8fdb View commit details
    Browse the repository at this point in the history
  11. implement for assets

    jasonvarga committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    609db02 View commit details
    Browse the repository at this point in the history
  12. and terms

    jasonvarga committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    17c343d View commit details
    Browse the repository at this point in the history
  13. dont fake queries in iterator builder, it's too much. we use that for…

    … filtering pages etc. move it to just the search query.
    jasonvarga committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    ce548f9 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    4adb4da View commit details
    Browse the repository at this point in the history
  15. fix nested where not showing in search queries since they arent stach…

    …e builders. removed the condition entirely. not sure when there would be no builder.
    jasonvarga committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    d85ab55 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    5d5817c View commit details
    Browse the repository at this point in the history
  17. add onceWithColumns ported from laravel ...

    this allows to avoid the `$this->columns ?? $columns` situation. `$this->columns` will always be what you need.
    
    also fixes `$query->get(['col1', 'col2'])` not showing proper `select`ed columns within our fake queries
    jasonvarga committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    fe32412 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    d489e6d View commit details
    Browse the repository at this point in the history
  19. nitpick

    jasonvarga committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    b9a5579 View commit details
    Browse the repository at this point in the history
  20. nitpick

    jasonvarga committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    9bbb62c View commit details
    Browse the repository at this point in the history
  21. nitpick

    jasonvarga committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    2975ace View commit details
    Browse the repository at this point in the history
  22. nitpick

    jasonvarga committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    e191b87 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    2c1ef7d View commit details
    Browse the repository at this point in the history