🇦🇹 Vienna
Account created on 19 March 2008, about 17 years ago
#

Merge Requests

More

Recent comments

🇦🇹Austria klausi 🇦🇹 Vienna

Thanks for reporting!

I think you can use PHPStan ignores like this:

class Schema extends BaseMySqlSchema {

  /**
   * {@inheritdoc}
   *
   * @phpstan-ignore-next-line missingType.return 
   */
  public function addField($table, $field, $spec, $keys_new = []) {
    if ...

Can you try if that works? I would like avoid writing special code to detect and ignore PHPStan comments as that would make a lot of our sniffs more complicated.

Downgrading priority to normal, I don't think this is a major issue as you can do this workaround.

🇦🇹Austria klausi 🇦🇹 Vienna

PHP-CS-Fixer is a different system than PHPCS. Coder uses PHPCS sniffs.

Integrating or running PHP-CS-Fixer is a bit out of scope for this Coder issue, but I'm open to review approaches how we could leverage PHP-CS-Fixer as parallel system to PHPCS in Coder.

🇦🇹Austria klausi 🇦🇹 Vienna

Hm, the point in 4.x was to have it explicitly as separate class, see the discussion in https://github.com/drupal-graphql/graphql/issues/1301 .

So I would not backport this. For graphql compose I assume you need to start a new git branch anyway? There are some small typing changes that could be incompatible between graphql 4.x and 5.x. Not sure if it is possible to write graphql compose to be compatible with both versions.

🇦🇹Austria klausi 🇦🇹 Vienna

The first alpha version was released, please test! https://www.drupal.org/project/graphql/releases/5.0.0-alpha1

🇦🇹Austria klausi 🇦🇹 Vienna

Looks good, thanks!

Uploading stable patch file for composer patches.

🇦🇹Austria klausi 🇦🇹 Vienna

Thanks, uploading stable patch file for composer patches.

🇦🇹Austria klausi 🇦🇹 Vienna

Uploading stable patch file for composer patches.

🇦🇹Austria klausi 🇦🇹 Vienna

Sorry, this was already done in the dev version of the module.

🇦🇹Austria klausi 🇦🇹 Vienna

Thanks, looks good! Uploading stable patch file for composer patches.

🇦🇹Austria klausi 🇦🇹 Vienna

merge request created, uploading stable patch fiel for composer patches.

🇦🇹Austria klausi 🇦🇹 Vienna

Turns out the remaining LoigicExceptions in code are correct, I don't think we can remove them.

🇦🇹Austria klausi 🇦🇹 Vienna

I merged this now - we can do anything that is unclear or could be improved in follow-ups. Better we get this big change out of the way now so that we can work better on other improvements.

🇦🇹Austria klausi 🇦🇹 Vienna

@Andriy: I pushed some changes to the pull request, we can improve the AlterableSchemaTest to test the actual AlterableComposableSchema class.

🇦🇹Austria klausi 🇦🇹 Vienna

klausi made their first commit to this issue’s fork.

🇦🇹Austria klausi 🇦🇹 Vienna

Thanks, this will be merged soon.

🇦🇹Austria klausi 🇦🇹 Vienna

@adamps: Thank you! Can you make a new release?

Currently we have the 4.x-dev version in composer, but Simplenews Scheduler does not like that when there is no version in Simplenews.

🇦🇹Austria klausi 🇦🇹 Vienna

Thanks - sorry we don't provide compatibility guarantees for test code, downgrading to normal.

I think we can add those methods, but be aware that we don't have test coverage for this test code, so it could break again in the future. But I think that is ok, it is just test code afterall.

🇦🇹Austria klausi 🇦🇹 Vienna

Thanks, uploading stable patch file for composer patches.

🇦🇹Austria klausi 🇦🇹 Vienna

Looks good to me, thanks!

Uploading stable patch file for composer patches.

🇦🇹Austria klausi 🇦🇹 Vienna

Looks good to me, thanks!

Uploading stable patch file for composer patches.

🇦🇹Austria klausi 🇦🇹 Vienna

I also fixed another deprecated warning in the tests, I think this can stay RTBC.

Also uploading stable patch file for composer patches.

🇦🇹Austria klausi 🇦🇹 Vienna

klausi made their first commit to this issue’s fork.

🇦🇹Austria klausi 🇦🇹 Vienna

I pushed the empty array as default value instead, please review!

Also attaching stable patch file here for composer patches.

🇦🇹Austria klausi 🇦🇹 Vienna

klausi made their first commit to this issue’s fork.

🇦🇹Austria klausi 🇦🇹 Vienna

Merge request updated. Uploading stable patch file here for composer patches.

I think the tests are still missing here.

🇦🇹Austria klausi 🇦🇹 Vienna

Thanks, uploading stable patch file for composer patches.

🇦🇹Austria klausi 🇦🇹 Vienna

Thanks for reporting!

This happens when you have no blank line after the PHP open tag. Somehow the Squiz standard confuses Drupal file comments with the function comment. But it does not matter, you can fix that by having a blank line before the file comment.

Having a blank line after the PHP open tags is defined in our coding standards, for example https://www.drupal.org/docs/develop/standards/php/php-coding-standards#s...

So I think there is nothing to fix here.

🇦🇹Austria klausi 🇦🇹 Vienna

PHPCS 3.12 was released that contains my fix, I bumped the version in Coder's composer file.

🇦🇹Austria klausi 🇦🇹 Vienna

Sure, but those annotation changes are not breaking changes? So we could do the them anytime later as well?

But if you would like to work on them I'm happy to include the conversions!

🇦🇹Austria klausi 🇦🇹 Vienna

Updated the merge request. Uploading stbale patch file for composer patches.

🇦🇹Austria klausi 🇦🇹 Vienna

thanks, uploading static file for composer patches.

🇦🇹Austria klausi 🇦🇹 Vienna

Uploading static patch file for composer patches.

🇦🇹Austria klausi 🇦🇹 Vienna

This will be merged soon.

🇦🇹Austria klausi 🇦🇹 Vienna
🇦🇹Austria klausi 🇦🇹 Vienna

Unfortunately this is quite a big change, the important thing is to review the interfaces so that they are solid.

🇦🇹Austria klausi 🇦🇹 Vienna

Merged into 5.x.

🇦🇹Austria klausi 🇦🇹 Vienna
🇦🇹Austria klausi 🇦🇹 Vienna

we will do this in 5.x

🇦🇹Austria klausi 🇦🇹 Vienna
🇦🇹Austria klausi 🇦🇹 Vienna

klausi created an issue.

🇦🇹Austria klausi 🇦🇹 Vienna

Automated tests passing now.

🇦🇹Austria klausi 🇦🇹 Vienna

Now finally done.

🇦🇹Austria klausi 🇦🇹 Vienna

Thanks, this will be merged soon.

🇦🇹Austria klausi 🇦🇹 Vienna

Merged.

🇦🇹Austria klausi 🇦🇹 Vienna

klausi created an issue.

🇦🇹Austria klausi 🇦🇹 Vienna

Thanks, I cleaned up the rest of the code and improved the test code.

This will be merged soon.

🇦🇹Austria klausi 🇦🇹 Vienna

There is a deprecation incompatibility with 🐛 Cache collision when multiple servers are using the same schema plugin Active , opened a follow-up merge request.

🇦🇹Austria klausi 🇦🇹 Vienna

Hm, not sure I understand the problem ...

graphql_composable is an example module for demonstration purposes, so it should not be scanned if it is not enabled. Maybe we have a bug that uses the schema files from disabled modules? Or you include the example module by accident somehow?

🇦🇹Austria klausi 🇦🇹 Vienna

Merge train is running, thanks for reporting!

🇦🇹Austria klausi 🇦🇹 Vienna

klausi made their first commit to this issue’s fork.

🇦🇹Austria klausi 🇦🇹 Vienna

Alright, added to the merge train! Thanks!

🇦🇹Austria klausi 🇦🇹 Vienna

Thanks for reporting!

1) There is no graphql_core module. Did you mean graphql? Should be "drush en graphql"

2) The route in the info file is wrong, we can fix that!

🇦🇹Austria klausi 🇦🇹 Vienna

klausi made their first commit to this issue’s fork.

🇦🇹Austria klausi 🇦🇹 Vienna

Added to merge train, will be there soon. Thanks!

🇦🇹Austria klausi 🇦🇹 Vienna

Thanks, approach looks good!

I'm thinking about if the API addition could break existing installations - I think it will break all old sites that have dataproducer_populate_default_values set to FALSE. We could allow the parameters to be nullable with the "?" operator, which is ugly but should work?

I think you can go ahead and add tests now!

🇦🇹Austria klausi 🇦🇹 Vienna

I see, thanks for clarifying! Then I will close this for now and we can reopen or make a new issue in the future if this becomes relevant.

🇦🇹Austria klausi 🇦🇹 Vienna

Thanks - I think we should only do the PHPCS fixes here, to not make the merge request even bigger with out of scope changes.

PHPStan: 📌 Fix the issues reported by phpcs Needs review

🇦🇹Austria klausi 🇦🇹 Vienna

Thanks a lot Jonathan for fixing this in 📌 Add new dictionary to cater for common words not in core dictionaries Active .

I don't think there is anything left to do in Coder, so will close this again.

🇦🇹Austria klausi 🇦🇹 Vienna

Thanks for the suggestion!

Can you describe in the issue summary why we would need this for Coder? For checking changes of a Coder merge request I can checkout Coder locally and run it? Or what am I missing here, how would you apply Tugboat to test a merge request?

Another restriction is that we develop Coder at Github https://github.com/pfrenssen/coder . So we don't use/run drupal.org merge requests.

🇦🇹Austria klausi 🇦🇹 Vienna

Attaching stable patch file for composer patches without the use statements in the meantime.

🇦🇹Austria klausi 🇦🇹 Vienna

Thanks, I think the merge request should only change the nullable types compatibility, but I also see use statement changes? Is that on purpose?

🇦🇹Austria klausi 🇦🇹 Vienna

I fixed the comments in the pull request, please review.

Uploading stable patch file for composer patches.

🇦🇹Austria klausi 🇦🇹 Vienna

klausi made their first commit to this issue’s fork.

🇦🇹Austria klausi 🇦🇹 Vienna

Also uploading stable patch file for composer patches.

🇦🇹Austria klausi 🇦🇹 Vienna

Is this a security issue? If yes please report privately at https://www.drupal.org/project/simplenews/report-security-issue

🇦🇹Austria klausi 🇦🇹 Vienna

Uploading stable patch file for composer patches.

🇦🇹Austria klausi 🇦🇹 Vienna

Closing this as duplicate of 🐛 Fix PHP 8.4 implicit nullable deprecation Needs review . Let's continue there!

🇦🇹Austria klausi 🇦🇹 Vienna

Uploading stable patch file for composer patches.

Production build 0.71.5 2024