Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: laravel/octane
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.2.12
Choose a base ref
...
head repository: laravel/octane
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.2.13
Choose a head ref
  • 7 commits
  • 6 files changed
  • 3 contributors

Commits on May 31, 2022

  1. Update CHANGELOG

    driesvints authored and github-actions[bot] committed May 31, 2022

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    825028b View commit details

Commits on Jun 7, 2022

  1. Update release.yml

    driesvints authored Jun 7, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    e978366 View commit details

Commits on Jun 8, 2022

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    7cb980a View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    6d476ea View commit details

Commits on Jun 22, 2022

  1. Update release.yml

    driesvints authored Jun 22, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    44d08b3 View commit details

Commits on Jun 23, 2022

  1. Update release.yml

    driesvints authored Jun 23, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    edde78b View commit details
  2. Refresh query duration handling (#541)

    * refresh query duration handling
    
    * adjust naming
    
    * ensure only called when methods exist
    timacdonald authored Jun 23, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    4cc7c1a View commit details
6 changes: 3 additions & 3 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -9,6 +9,9 @@ changelog:
- title: Added
labels:
- enhancement
- title: Changed
labels:
- "*"
- title: Deprecated
labels:
- deprecated
@@ -21,6 +24,3 @@ changelog:
- title: Security
labels:
- security
- title: Changed
labels:
- "*"
5 changes: 2 additions & 3 deletions .github/workflows/pull-requests.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Pull Requests
name: pull requests

on:
pull_request_target:
types:
- opened
types: [opened]

permissions:
pull-requests: write
2 changes: 1 addition & 1 deletion .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Update Changelog"
name: update changelog

on:
release:
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Release Notes

## [Unreleased](https://github.com/laravel/octane/compare/v1.2.11...1.x)
## [Unreleased](https://github.com/laravel/octane/compare/v1.2.12...1.x)

## [v1.2.12](https://github.com/laravel/octane/compare/v1.2.11...v1.2.12) - 2022-05-31

### Changed

- Removes non-needed message by @nunomaduro in https://github.com/laravel/octane/pull/532

## [v1.2.11](https://github.com/laravel/octane/compare/v1.2.10...v1.2.11) - 2022-05-20

1 change: 1 addition & 0 deletions src/Concerns/ProvidesDefaultConfigurationOptions.php
Original file line number Diff line number Diff line change
@@ -47,6 +47,7 @@ public static function prepareApplicationForNextOperation(): array
\Laravel\Octane\Listeners\GiveNewApplicationInstanceToViewFactory::class,
\Laravel\Octane\Listeners\FlushDatabaseRecordModificationState::class,
\Laravel\Octane\Listeners\FlushDatabaseQueryLog::class,
\Laravel\Octane\Listeners\RefreshQueryDurationHandling::class,
\Laravel\Octane\Listeners\FlushLogContext::class,
\Laravel\Octane\Listeners\FlushArrayCache::class,
\Laravel\Octane\Listeners\FlushMonologState::class,
29 changes: 29 additions & 0 deletions src/Listeners/RefreshQueryDurationHandling.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

namespace Laravel\Octane\Listeners;

class RefreshQueryDurationHandling
{
/**
* Handle the event.
*
* @param mixed $event
* @return void
*/
public function handle($event): void
{
if (! $event->sandbox->resolved('db')) {
return;
}

foreach ($event->sandbox->make('db')->getConnections() as $connection) {
if (
method_exists($connection, 'resetTotalQueryDuration')
&& method_exists($connection, 'allowQueryDurationHandlersToRunAgain')
) {
$connection->resetTotalQueryDuration();
$connection->allowQueryDurationHandlersToRunAgain();
}
}
}
}