tempest-framework icon indicating copy to clipboard operation
tempest-framework copied to clipboard

[Bug]: Console suggestions are repeated once per alias

Open brendt opened this issue 1 year ago • 6 comments

Tempest Version

1.0-alpha1

PHP Version

8.3

Operating System

MacOS

Description

[ ] discovery:cache
[ ] discovery:cache
[x] discovery:status
[ ] discovery:status
[ ] discovery:clear
[ ] discovery:clear

Steps to Reproduce

/

brendt avatar Sep 17 '24 11:09 brendt

@brendt can you assign me? I've been wanting to look into this part of Tempest.

Also, the steps to reproduce are rather empty

Treggats avatar Sep 22 '24 13:09 Treggats

My bad 😇

./tempest di

shows the issue

brendt avatar Sep 22 '24 18:09 brendt

Hey @Treggats , I noticed this issue was assigned to you, but I’ve already started working on a fix in my branch:

https://github.com/tempestphp/tempest-framework/compare/main...Bapawe:tempest-framework:fix-resolve-or-rescue-middleware

I’ve added a ResolveOrRescueMiddlewareTest to reproduce the bug and applied the fix in the middleware itself. Currently, I’m using the discovery commands for testing, although I realize this might not be the best approach.

Bapawe avatar Sep 23 '24 20:09 Bapawe

hey @Bapawe, yeah. It's best if you want to work on something you ask to get assigned, so we don't end up working on the same :)

Currently, I’m using the discovery commands for testing I'm not sure what you mean by this.

Regarding the changes, I also started with a test. Was still looking where the list got generated. Would you be okay if I incorporate your changes into my work?

Treggats avatar Sep 24 '24 06:09 Treggats

hey @Bapawe, yeah. It's best if you want to work on something you ask to get assigned, so we don't end up working on the same :)

Yeah i thought so, that's why i created the comment 😉

Currently, I’m using the discovery commands for testing I'm not sure what you mean by this.

I mean, it works but it might be better to use a new test command fixture specifically for the ResolveOrRescueMiddlewareTest.

Regarding the changes, I also started with a test. Was still looking where the list got generated. Would you be okay if I incorporate your changes into my work?

Sure, go ahead!

Bapawe avatar Sep 24 '24 07:09 Bapawe

I mean, it works but it might be better to use a new test command fixture specifically for the ResolveOrRescueMiddlewareTest.

A fixture is a good idea, hadn't looked into that yet.

Treggats avatar Sep 24 '24 07:09 Treggats