welcoMattic
Repos
158
Followers
118
Following
201

🌐 Slides de mon talk "Traduire efficacement une application Symfony"

4
0

:rocket: Share your conferences activity to your buddies

19
2

🏗️ A skeleton to start a new web project with PHP, Docker and Invoke

269
28

The Symfony PHP framework

0
0

:seedling: Jane is a set of libraries to generate Models & API Clients based on JSON Schema / OpenAPI specs

424
91

A simple CLI to control Spotify via D-bus

15
0

Events

InfluxDB crash since update to 4.5

Problem/Motivation

InfluxDB has often crash on my Raspberry Pi 4 2Go RAM. I decided to use the INFLUXDB_DATA_INDEX_VERSION=tsi1 env var to solve the problem. But InfluxDB is still crashing.

Expected behavior

Not to crash

Actual behavior

Crash

Steps to reproduce

Logs:

fatal error: out of memory
goroutine 31 [running]:
runtime.throw(0xfebdde, 0xd)
	/usr/local/go/src/runtime/panic.go:774 +0x5c fp=0x51c7114 sp=0x51c7100 pc=0x41644
runtime.(*mcache).refill(0xb6f73a34, 0x1f)
	/usr/local/go/src/runtime/mcache.go:140 +0xfc fp=0x51c7128 sp=0x51c7114 pc=0x262ec
runtime.(*mcache).nextFree(0xb6f73a34, 0x1f93b21f, 0x1, 0x1b0, 0xd01ac0)
	/usr/local/go/src/runtime/malloc.go:854 +0x7c fp=0x51c7148 sp=0x51c7128 pc=0x1b0f4
runtime.mallocgc(0xe0, 0x0, 0x0, 0xc9e74c)
	/usr/local/go/src/runtime/malloc.go:1022 +0x7a0 fp=0x51c71b0 sp=0x51c7148 pc=0x1ba40
runtime.rawbyteslice(0xd1, 0x0, 0x0, 0x0)
	/usr/local/go/src/runtime/string.go:272 +0x84 fp=0x51c71cc sp=0x51c71b0 pc=0x5f908
runtime.stringtoslicebyte(0x0, 0xbe57c7e0, 0xd1, 0xf0, 0x24bdfe38, 0x1)
	/usr/local/go/src/runtime/string.go:161 +0xa4 fp=0x51c71ec sp=0x51c71cc pc=0x5f354
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Cache).WriteMulti(0x49ee500, 0xbfba060, 0x51c7510, 0x1eb5b08)
	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/cache.go:343 +0x268 fp=0x51c72d8 sp=0x51c71ec pc=0xc9e708
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*CacheLoader).Load.func1(0x51c7594, 0x4a12190, 0x51c758c, 0x49ee500, 0x0, 0x0)
	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/cache.go:747 +0x4d4 fp=0x51c7568 sp=0x51c72d8 pc=0xd13240
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*CacheLoader).Load(0x4a12190, 0x49ee500, 0x1, 0x1)
	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/cache.go:758 +0x88 fp=0x51c759c sp=0x51c7568 pc=0xca00bc
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).reloadCache(0x51da000, 0x0, 0x0)
	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:2408 +0x1d4 fp=0x51c76ec sp=0x51c759c pc=0xccfbe4
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).Open(0x51da000, 0x4b44200, 0x1ed86d8)
	/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:754 +0x28c fp=0x51c7734 sp=0x51c76ec pc=0xcc69b4
github.com/influxdata/influxdb/tsdb.(*Shard).Open.func1(0x51b2000, 0x0, 0x0)
	/go/src/github.com/influxdata/influxdb/tsdb/shard.go:344 +0x298 fp=0x51c7a58 sp=0x51c7734 pc=0x5d12c4
github.com/influxdata/influxdb/tsdb.(*Shard).Open(0x51b2000, 0x4b44240, 0x494f2f0)
	/go/src/github.com/influxdata/influxdb/tsdb/shard.go:355 +0x1c fp=0x51c7a84 sp=0x51c7a58 pc=0x5b9dac
github.com/influxdata/influxdb/tsdb.(*Store).loadShards.func1(0x4ae66c0, 0x49c2140, 0x4f99b00, 0x4ae6700, 0xfd51f0, 0x4be8420, 0x4f1e400, 0x4a80ed4, 0x9, 0x494e6de, ...)
	/go/src/github.com/influxdata/influxdb/tsdb/store.go:404 +0x4c4 fp=0x51c7fb4 sp=0x51c7a84 pc=0x5d23e4
runtime.goexit()
	/usr/local/go/src/runtime/asm_arm.s:868 +0x4 fp=0x51c7fb4 sp=0x51c7fb4 pc=0x73610
created by github.com/influxdata/influxdb/tsdb.(*Store).loadShards
	/go/src/github.com/influxdata/influxdb/tsdb/store.go:362 +0xb64
goroutine 1 [chan receive, 1 minutes]:
github.com/influxdata/influxdb/tsdb.(*Store).loadShards(0x49c2140, 0x0, 0x0)
	/go/src/github.com/influxdata/influxdb/tsdb/store.go:421 +0x115c
github.com/influxdata/influxdb/tsdb.(*Store).Open(0x49c2140, 0x0, 0x0)
	/go/src/github.com/influxdata/influxdb/tsdb/store.go:221 +0x1a4
github.com/influxdata/influxdb/cmd/influxd/run.(*Server).Open(0x49be320, 0x4ab3cac, 0x49be320)
	/go/src/github.com/influxdata/influxdb/cmd/influxd/run/server.go:444 +0x894
github.com/influxdata/influxdb/cmd/influxd/run.(*Command).Run(0x49b7800, 0x48920f0, 0x0, 0x0, 0x0, 0x48920f0)
	/go/src/github.com/influxdata/influxdb/cmd/influxd/run/command.go:149 +0x7e4
main.(*Main).Run(0x4ab3f8c, 0x48920f0, 0x0, 0x0, 0x2b7a8f8, 0x4890030)
	/go/src/github.com/influxdata/influxdb/cmd/influxd/main.go:81 +0x104
main.main()
	/go/src/github.com/influxdata/influxdb/cmd/influxd/main.go:45 +0x140
goroutine 34 [syscall, 1 minutes]:
os/signal.signal_recv(0x0)
	/usr/local/go/src/runtime/sigqueue.go:147 +0x130
os/signal.loop()
	/usr/local/go/src/os/signal/signal_unix.go:23 +0x14
created by os/signal.init.0
	/usr/local/go/src/os/signal/signal_unix.go:29 +0x30
goroutine 4 [select]:
github.com/influxdata/influxdb/vendor/go.opencensus.io/stats/view.(*worker).start(0x4adc680)
	/go/src/github.com/influxdata/influxdb/vendor/go.opencensus.io/stats/view/worker.go:154 +0xb0
created by github.com/influxdata/influxdb/vendor/go.opencensus.io/stats/view.init.0
	/go/src/github.com/influxdata/influxdb/vendor/go.opencensus.io/stats/view/worker.go:32 +0x48
goroutine 5 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0xa6bc7f80, 0x72, 0x0)
	/usr/local/go/src/runtime/netpoll.go:184 +0x44
internal/poll.(*pollDesc).wait(0x49bcab4, 0x72, 0x0, 0x0, 0xfe25d8)
	/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x30
internal/poll.(*pollDesc).waitRead(...)
	/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0x49bcaa0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
	/usr/local/go/src/internal/poll/fd_unix.go:384 +0x1a8
net.(*netFD).accept(0x49bcaa0, 0x0, 0xa8001, 0x0)
	/usr/local/go/src/net/fd_unix.go:238 +0x20
net.(*TCPListener).accept(0x4b31230, 0x4b3eb80, 0x40000000, 0x0)
	/usr/local/go/src/net/tcpsock_posix.go:139 +0x20
net.(*TCPListener).Accept(0x4b31230, 0x0, 0x0, 0x0, 0x0)
	/usr/local/go/src/net/tcpsock.go:261 +0x3c
github.com/influxdata/influxdb/tcp.(*Mux).Serve(0x4b3eb80, 0x1ec3ff0, 0x4b31230, 0x4b31230, 0x0)
	/go/src/github.com/influxdata/influxdb/tcp/mux.go:75 +0x64
created by github.com/influxdata/influxdb/cmd/influxd/run.(*Server).Open
	/go/src/github.com/influxdata/influxdb/cmd/influxd/run/server.go:395 +0x1f0
[16:22:26] WARNING: InfluxDB crashed, halting add-on
s6-rc: info: service legacy-services: stopping
[16:22:26] INFO: InfluxDB stopped, restarting...
[16:22:26] INFO: NGINX stopped, restarting...
s6-svwait: fatal: supervisor died
[16:22:26] INFO: Chronograf stopped, restarting...
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
[16:22:26] INFO: Kapacitor stopped, restarting...
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
Created at 4 hours ago
Created at 1 day ago
Created at 1 day ago
issue comment
[Translation] Add icu message support for the lokalise provider

I'd like to have an answer to my previous comment:

But if the provider is in control, we don't care about the exact format on the app's side, do we? If not, we should fetch the most capable format, which is ICU. Why would the app want to decide what it works with when it can delegate to the provider?

WDYT? I'm not happy with adding a config option...

Some apps are still working with the old plural format, not ICU. For those apps, we must keep an option to not fetch translations in ICU format, otherwise I guess the fetched translations will be in a weird format (old plural format treated as ICU).

Did I miss something?

Created at 2 days ago
Created at 2 days ago
Created at 2 days ago

Update dot_config/executable_starship.toml

Update dot_config/executable_starship.toml

Update dot_config/executable_starship.toml

Add dot_config/zellij/layouts/talks.yaml

Remove dot_config/zellij/layouts/talks.yaml

Add dot_config/zellij/layouts/encrypted_talks.yaml.age

Update dot_config/zellij/layouts/encrypted_talks.yaml.age

Update dot_config/i3/config

Add dot_config/systemd/user/flowy.service

Add dot_config/systemd/user/wired.service

Add dot_config/systemd/user/espanso.service

Update dot_config/systemd/user/flowy.service

Remove Pictures/wallpapers/DAY-01.jpg Remove Pictures/wallpapers/NIGHT-02.jpg

Update dot_config/systemd/user/wired.service

Update dot_config/systemd/user/wired.service

Update dot_config/systemd/user/flowy.service

Update dot_config/systemd/user/flowy.service

Update dot_config/systemd/user/wired.service

Update dot_config/i3/config

Update dot_config/i3/config

Created at 2 days ago
Created at 2 days ago
started
Created at 3 days ago
started
Created at 3 days ago
opened issue
[RFC] Improve Translation Providers usage in cloud native environment

Description

Actually Translation Providers recommended usage implies defining cronjob to pull translations.

But in cloud native environment (where applications are packaged in images and deployed in containers) this workflow is not optimal.

As discussed here, cronjob in container is not a satisfying option.

Does anyone have experience in this type of environment? And any thoughts to improve the workflow?

cc @dunglas @gabiudrescu @nicolas-grekas

Example

No response

Created at 3 days ago
issue comment
[Translation] Add icu message support for the lokalise provider

@DanielBadura sorry for the delay. To finish this PR I think we need to be sure about the plural parameter value.

About the configuration, I think we are ok. We need to enable the ICU format per Provider. As I mentioned earlier, I will take care of Loco Provider once this PR will be merged.

Created at 3 days ago

Add a few more ??=

Convert switch cases to match expression

minor #47649 Add a few more ??= (tigitz)

This PR was merged into the 6.2 branch.

Discussion

Add a few more ??=

| Q | A | ------------- | --- | Branch? | 6.2 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | -

Continuation of https://github.com/symfony/symfony/pull/47549 using rector with this config

<?php

declare(strict_types=1);

use Rector\Config\RectorConfig;
use Rector\Php74\Rector\Assign\NullCoalescingOperatorRector;

return static function (RectorConfig $rectorConfig): void {
   $rectorConfig->rule(NullCoalescingOperatorRector::class);
};

Commits

e681bd5021 Add a few more ??=

minor #47654 Convert switch cases to match expression (tigitz)

This PR was merged into the 6.2 branch.

Discussion

Convert switch cases to match expression

| Q | A | ------------- | --- | Branch? | 6.2 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR |

Continuation of https://github.com/symfony/symfony/pull/45433 using rector rule

@fancyweb friendly ping as you've worked on it previously.

Commits

f3ec7ac324 Convert switch cases to match expression

[WebProfilerBundle] [WebProfilerPanel] Update the configuration panel

feature #47665 [WebProfilerBundle] [WebProfilerPanel] Update the configuration panel (javiereguiluz)

This PR was squashed before being merged into the 6.2 branch.

Discussion

[WebProfilerBundle] [WebProfilerPanel] Update the configuration panel

| Q | A | ------------- | --- | Branch? | 6.2 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | -

This PR proposes to update the "Symfony status" information in the "Config" panel of the Symfony Profiler. Today it's displayed as a table:

I'd prefer to display that information more visually:

The wording has been updated a bit too ("In development" vs "Unstable version") to better match the wording used at https://symfony.com/releases/6.2

Here's the case of a LTS version:

And for an unmaintained version:

Commits

48ec448525 [WebProfilerBundle] [WebProfilerPanel] Update the configuration panel

Add warning for possibly truncated inputs in QuestionHelper (#47586)

feature #47588 Add warning for possibly truncated inputs in QuestionHelper (#47586) (pbek)

This PR was squashed before being merged into the 6.2 branch.

Discussion

Add warning for possibly truncated inputs in QuestionHelper (#47586)

| Q | A | ------------- | --- | Branch? | 6.2 | Bug fix? | yes | Tickets | Fix #47586 | License | MIT

Adds a warning for possibly truncated inputs in QuestionHelper.

Commits

806aa1b8c7 Add warning for possibly truncated inputs in QuestionHelper (#47586)

[Notifier] [RocketChat] Updated RocketChatOptions

[HttpKernel] Use Accept-Language header even if there are no enabled locales

feature #47377 [HttpKernel] Use Accept-Language header even if there are no enabled locales (MatTheCat)

This PR was squashed before being merged into the 6.2 branch.

Discussion

[HttpKernel] Use Accept-Language header even if there are no enabled locales

| Q | A | ------------- | --- | Branch? | 6.2 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | Fix #47355 | License | MIT | Doc PR | N/A

Don’t really know how I should consider this PR :thinking:

It would affect people setting set_locale_from_accept_language to true with no enabled_locales when the request has a preferred language:

  • before: set the default locale as request locale
  • after: set the preferred language as request locale

Commits

b20d074f66 [HttpKernel] Use Accept-Language header even if there are no enabled locales

Fix use-after-free with nested FFI::addr() in VarDumper test

minor #47673 [VarDumper] Fix use-after-free with nested FFI::addr() in test (iluuu1994)

This PR was merged into the 6.2 branch.

Discussion

[VarDumper] Fix use-after-free with nested FFI::addr() in test

| Q | A | ------------- | --- | Branch? | 6.2 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | https://github.com/php/php-src/issues/9598 | License | MIT | Doc PR |

This issue was found by the PHP community build, after which I created https://github.com/php/php-src/issues/9598. Basically, the inner \FFI::addr() CData will be deallocated after the second \FFI::addr() call which will be stored and then points to invalid memory. However, it turns out nesting \FFI::addr() calls without temporarily storing the result is actually not allowed.

https://www.php.net/manual/en/ffi.addr.php

Creates an unmanaged pointer to the C data represented by the given FFI\CData. The source ptr must survive the resulting pointer. This function is mainly useful to pass arguments to C functions by pointer.

We'll see if we can improve FFI by throwing an exception when passing temporary values to FFI::addr(). Either way, this test is not valid.

Commits

4c799152ec Fix use-after-free with nested FFI::addr() in VarDumper test

Fix memory leak in FFI test

Unowned data must be passed to FFI::free() when no longer needed.

minor #47674 [VarDumper] Fix memory leak in FFI test (iluuu1994)

This PR was merged into the 6.2 branch.

Discussion

[VarDumper] Fix memory leak in FFI test

Unowned data must be passed to FFI::free() when no longer needed.

| Q | A | ------------- | --- | Branch? | 6.2 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | -

As explained above :slightly_smiling_face:

https://www.php.net/manual/en/ffi.new.php

owned

Whether to create owned (i.e. managed) or unmanaged data. Managed data lives together with the returned FFI\CData object, and is released when the last reference to that object is released by regular PHP reference counting or GC. Unmanaged data should be released by calling FFI::free(), when no longer needed.

Making the data owned would also work, but I wasn't sure if this test was explicitly trying to test unowned data.

Commits

2d734e61f4 Fix memory leak in FFI test

[HttpKernel] Use Accept-Language header even if there are no enabled locales

bug #47675 [HttpKernel] Use Accept-Language header even if there are no enabled locales (MatTheCat)

This PR was squashed before being merged into the 6.1 branch.

Discussion

[HttpKernel] Use Accept-Language header even if there are no enabled locales

| Q | A | ------------- | --- | Branch? | 6.1 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix https://github.com/symfony/symfony/pull/47377 | License | MIT | Doc PR | N/A

Commits

d97d51c719 [HttpKernel] Use Accept-Language header even if there are no enabled locales

Merge branch '6.1' into 6.2

  • 6.1: [HttpKernel] Use Accept-Language header even if there are no enabled locales

Add PhpAstExtractor

Compute constraint names list in a compiler pass

Created at 4 days ago

Cover missing cases

Created at 4 days ago
issue comment
Easily access to slidev context from a custom component
  <div class="absolute bottom-0 -left-40px h-10 progress" 
       style="width: {{ Math.floor(100 * ($slidev.nav.currentPage / $slidev.nav.total)) }}%;"></div>
</template>```

I tried this code to achieve it, but it doesn't work properly: I see no `style` attribute in the rendered HTML.

I guess I definitely miss something :sweat_smile: 
                                
Created at 1 week ago
Created at 1 week ago

[Validator] Add the When constraint and validator

Make bash completion run in non interactive mode

bug #47394 [Console] [Completion] Make bash completion run in non interactive mode (Seldaek)

This PR was merged into the 5.4 branch.

Discussion

[Console] [Completion] Make bash completion run in non interactive mode

| Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #... | License | MIT | Doc PR | symfony/symfony-docs#...

Refs https://github.com/composer/composer/issues/11024

Composer does prompt in some contexts, and that blocks/freezes the completion as it runs in an interactive context but is not actually visible. Explicitly setting it to be non interactive seems to be the fix to me.

TODO:

  • [ ] A similar fix probably should be applied to other completion types supported in newer versions than 5.4

Commits

cf0b56f184 Make bash completion run in non interactive mode

[Console] [Completion] Make fish completion run in non interactive mode

skip a transient test on Windows

tweak the factory class description for inlined factory services

bug #47463 [Console] [Completion] Make fish completion run in non interactive mode (Seldaek)

This PR was merged into the 6.1 branch.

Discussion

[Console] [Completion] Make fish completion run in non interactive mode

| Q | A | ------------- | --- | Branch? | 6.1 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #... | License | MIT | Doc PR | symfony/symfony-docs#...

Port https://github.com/symfony/symfony/pull/47394 to 6.1 for fish

Commits

25ab9563fc [Console] [Completion] Make fish completion run in non interactive mode

minor #47469 [FrameworkBundle] tweak the factory class description for inlined factory services (xabbuh)

This PR was merged into the 4.4 branch.

Discussion

[FrameworkBundle] tweak the factory class description for inlined factory services

| Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | Fix https://github.com/symfony/symfony/pull/47351#discussion_r958677734 | License | MIT | Doc PR |

Commits

5f0a5b44bf tweak the factory class description for inlined factory services

Use identical comparison for schema validation.

sleep 1millisecond to ensure time has changed on fast computers

[DependencyInjection][VarExporter] Generate lazy proxies for non-ghostable lazy services out of the box

feature #47236 [DependencyInjection][VarExporter] Generate lazy-loading virtual proxies for non-ghostable lazy services (nicolas-grekas)

This PR was merged into the 6.2 branch.

Discussion

[DependencyInjection][VarExporter] Generate lazy-loading virtual proxies for non-ghostable lazy services

| Q | A | ------------- | --- | Branch? | 6.2 | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | - | License | MIT | Doc PR | -

Since #46752 and #46751, we are able to make services lazy out of the box, except when 1. a service relies on an internal class 2. a service has the proxy tag or 3. a service's class is abstract (and the service uses a factory). In these situations, proxy-manager-bridge was required. This was an acceptable trade-off because this would be quite uncommon. But while working on Doctrine, I realized that we cannot use ghost objects when a factory is used. I described this for Doctrine in https://github.com/doctrine/orm/issues/9896 but the situation can happen with any services constructed by a factory. This means we'd need proxy-manager-bridge anytime a factory is used on a lazy service. What was uncommon becomes quite common and the trade-off is not acceptable anymore. Thus this PR.

This PR adds a LazyProxyTrait and a ProxyHelper to build lazy loading virtual proxies at will. It then wires this new capability into the container. As a result proxy-manager-bridge is not needed anymore. We can deprecate it in another PR.

While the diff is quite big, LazyProxyTrait has many similarities with LazyGhostTrait and both traits can be diffed to see where their behavior varies.

Excerpt from the README for the record:

The component provides two lazy loading patterns: ghost objects and virtual proxies (see https://martinfowler.com/eaaCatalog/lazyLoad.html for reference.)

Ghost objects work only on concrete and non-internal classes. In the generic case, they are not compatible with using factories in their initializer.

Virtual proxies work on concrete, abstract or internal classes. They provide an API that looks like the actual objects and forward calls to them. They can cause identity problems because proxies might not be seen as equivalents to the actual objects.

Because of this identity problem, ghost objects should be preferred when possible. Exceptions thrown by the ProxyHelper class can help decide when it can be used or not.

Ghost objects and virtual proxies both provide implementations for the LazyObjectInterface which allows resetting them to their initial state or to forcibly initialize them when needed. Note that resetting a ghost object skips its read-only properties. You should use a virtual proxy to reset read-only properties.

Commits

4862139347 [DependencyInjection][VarExporter] Generate lazy proxies for non-ghostable lazy services out of the box

minor #47465 [VarDumper] skip a transient test on Windows (xabbuh)

This PR was merged into the 4.4 branch.

Discussion

[VarDumper] skip a transient test on Windows

| Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | https://github.com/symfony/symfony/issues/45373#issuecomment-1063973693 | License | MIT | Doc PR |

Commits

fcfcba11b6 skip a transient test on Windows

Merge branch '4.4' into 5.4

  • 4.4: tweak the factory class description for inlined factory services skip a transient test on Windows

Merge branch '5.4' into 6.0

  • 5.4: tweak the factory class description for inlined factory services skip a transient test on Windows Make bash completion run in non interactive mode

Merge branch '6.0' into 6.1

  • 6.0: tweak the factory class description for inlined factory services skip a transient test on Windows Make bash completion run in non interactive mode

Merge branch '6.1' into 6.2

  • 6.1: tweak the factory class description for inlined factory services skip a transient test on Windows [Console] [Completion] Make fish completion run in non interactive mode Make bash completion run in non interactive mode

skip a transient test on AppVeyor

minor #47482 skip a transient test on AppVeyor (xabbuh)

This PR was merged into the 4.4 branch.

Discussion

skip a transient test on AppVeyor

| Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR |

Commits

d5e624c339 skip a transient test on AppVeyor

minor #47477 [Clock] sleep in test, 1millisecond to ensure time has changed on fast computers (PhilETaylor)

This PR was merged into the 6.2 branch.

Discussion

[Clock] sleep in test, 1millisecond to ensure time has changed on fast computers

| Q | A | ------------- | --- | Branch? | 6.2 | Bug fix? | no | New feature? | no | Deprecations? | no | License | MIT

So... Im "one of those" people that bought a Mac Studio Mac with a Apple M1 Ultra CPU and 128Gb RAM

When running the unit tests for the new Clock Component there is a test that compares before and after with

$before = new \DateTimeImmutable();
$clock = new MockClock();
$after = new \DateTimeImmutable();

50% of the tuns the unit tests fail, when run on this blazingly fast Mac, fail with message:

As you can see the timestamps are exactly the same.

Adding a one millionth of second delay ensures that on blazingly fast computers (And I DO UNDERSTAND that GitHub action runners/AppVeyor is never going be fast haha) that the tests pass 100% of the time instead of giving false failures.

I appreciate this might be an edge case but computers are only getting faster :) and one day a Mac like this might not cost £6000!

Commits

4a169536c8 sleep 1millisecond to ensure time has changed on fast computers

Created at 1 week ago
opened issue
Easily access to slidev context from a custom component

I would like to create a global progress bar component for my deck, but in my Progress.vue component, I can't access to $slidev context to get current slide and total slide number.

Did I miss something?

Created at 1 week ago
Created at 1 week ago
closed issue
3.0 breaks if doctrine is not installed

API Platform version(s) affected: 3.0.0

Description
After following the upgrade documentation to 2.7/3.0, and upgrade to 3.0 with no remaining deprecation in my Symfony application, I catch this error:

The service "ApiPlatform\State\CreateProvider" has a dependency on a non-existent service "api_platform.state.item_provider".

Note: I do not have Doctrine installed on my project (not needed).

How to reproduce
Initiate a Symfony project, with ApiPlatform 3.0, without doctrine. Add one simple ApiResource, try to reach the API.

Possible Solution
Detect doctrine presence to load or not the ApiPlatform\State\CreateProvider service.

Created at 1 week ago
issue comment
3.0 breaks if doctrine is not installed

Indeed, thank you @alanpoulain

Created at 1 week ago
opened issue
3.0 breaks if doctrine is not installed

API Platform version(s) affected: 3.0.0

Description
After following the upgrade documentation to 2.7/3.0, and upgrade to 3.0 with no remaining deprecation in my Symfony application, I catch this error:

The service "ApiPlatform\State\CreateProvider" has a dependency on a non-existent service "api_platform.state.item_provider".

Note: I do not have Doctrine installed on my project (not needed).

How to reproduce
Initiate a Symfony project, with ApiPlatform 3.0, without doctrine. Add one simple ApiResource, try to reach the API.

Possible Solution
Detect doctrine presence to load or not the ApiPlatform\State\CreateProvider service.

Created at 1 week ago
delete branch
welcoMattic delete branch patch-2
Created at 1 week ago

fix(cache): call iriConverter only for resources

fix(jsonapi): use skolem iris

fix(symfony): catch identifiers exceptions in iri converter

fix(metadata): merge defaults arrays

fix(test): use an operation within schema assertions

fix: XML/YAML cast values (#4800)

  • fix: XML/YAML cast values

  • fix: review

fix: Remove $defaultCommand deprecation (#4795) (#4801)

  • Overwrite getDefaultName to remove deprecation and preserve BC

  • Remove comment

Co-authored-by: Kai Dederichs k.dederichs@spicymedia.io

chore(deprecation): command name symfony 6

chore(deprecation): symfony normalizer/encoder context

chore(phpstan): ignore false-positive

fix(graphql): use operation on serializer context builder

fix(serializer): backport input/output without datatransformers from 3.0

Merge pull request #4804 from soyuka/2.7

Graphql interface change

chore: 2.7-beta.3 changelog

chore: changelog cs

Remove dump

Reduce coalescing operator call

Merge pull request #4809 from dannyvw/debug

Remove dump

Merge pull request #4810 from dannyvw/coalescing-operator

Reduce coalescing operator call

fix(schema): generation with default operation (#4818)

  • fix: reproduce bug

  • fix: schema generation

  • fix: CI Symfony dev

  • fix(graphql): supports normalize legacy

Co-authored-by: soyuka soyuka@users.noreply.github.com

Created at 1 week ago

chore(changelog): 2.7.0-alpha.3

fix(metadata): defaults with new metadata allows extra keys (#4743)

  • fix(metadata): defaults with new metadata allows extra keys

  • fix older versions

  • fix older versions

  • fix older versions

  • fix deprecation

fix: data collector injection (#4744)

fix(metadata): defaults with new metadata allows extra keys (#4743)

  • fix(metadata): defaults with new metadata allows extra keys

  • fix older versions

  • fix older versions

  • fix older versions

  • fix deprecation

fix: data collector injection (#4744)

fix(swagger-ui): openapi dependency injection (#4748)

fix: upgrade subresource with resource (#4747)

fix(swagger-ui): openapi dependency injection (#4748)

fix: upgrade subresource with resource (#4747)

Add missing processor and provider to extractor (#4754)

fix(metadata): defaults (#4759)

https://github.com/api-platform/core/issues/4613#issuecomment-1126735174

fix(json-schema): factory backward compatibility layer (#4758)

  • fix(json-schema): factory backward compatibility layer

link #4753

  • sdkjhg

  • php 7...

  • php 7...

  • php 7...

  • php 7...

  • fix

  • tired

  • come on

  • come on

fix(metadata): add read and write to extractor (#4760)

Co-authored-by: Antoine Bluchet soyuka@users.noreply.github.com

fix(graphql): output creates its own type in TypeBuilder (#4766)

fix(metadata): property override when value is set (#4767)

fix: clear missing metadata pools (#4770)

fix(graphql): output creates its own type in TypeBuilder (#4766) (#4771)

fix(metadata): defaults deprecation (#4772)

fix(metadata): extra properties operation inheritance (#4773)

fix(symfony): write listener uri variables converter (#4774)

Created at 1 week ago

Fix typo on named argument

Created at 1 week ago

Add multiple format support for resolve entity

Add doc to option resolveTargetEntityConfigType option which allows to change the file type to YAML (or other formats eventually).

fix: diff of Doctrine annotations (#1521)

feat(doc): add description of how to validate item delete operations (#1527)

feat: modernize getting started (#1529)

feat: explain how to enable Server Push with Caddy (#1530)

fix: datetime type in distribution/index.md

feat: explain how to configure Caddy (#1531)

  • feat: explain how to configure Caddy

  • Update caddy.md

  • Update caddy.md

Update caddy.md (#1532)

Update jwt.md

Update filters.md

The example of custom orm filter used swagger attribute in the description. Openapi replaced swagger in OpenApiFactory:getFiltersParameters

Fix convertType signature

Update graphql.md

Update graphql.md

Update serialization.md (#1552)

Update testing.md (#1555)

Change getContainer as a function instead of variable

Documentation fix for subresource custom path.

I was having problems with adding custom path name for subresource operation. I've followed suggestions from this comment and it worked fine, so I am proposing a change to the documentation.

fix: code links

chore: lint

Fix JWT authentication test file with static container (#1565)

  • Fix JWT authentication test file with static container

  • Remove the last residue of previous code to get static container

Update jwt.md (#1559)

https://stackoverflow.com/a/69801383/4601822

Added correct code for JWT (Bearer) auth in Swagger UI

Created at 1 week ago

Update operations.md

Created at 1 week ago
pull request opened
Fix typo on named argument on Operations page

Minor code typo

Created at 1 week ago