Lutsk
Account created on 12 March 2013, about 12 years ago
#

Merge Requests

More

Recent comments

🇺🇦Ukraine artem_sylchuk Lutsk

The first attempt has broken the behaviors attachment. Thanks @reinfate for spotting and fixing it.
Hope this time it works.

🇺🇦Ukraine artem_sylchuk Lutsk

Created the MR with the described changes.
I suppose it will require additional tests, maybe some code comments updates but I hope it is OK to have it as the first step and see what the tests results will say.

🇺🇦Ukraine artem_sylchuk Lutsk

The service declaration can be simplified as autowire is set to true globally for all services.

🇺🇦Ukraine artem_sylchuk Lutsk

The service declaration can be simplified as autowire is set to true globally for all services.

🇺🇦Ukraine artem_sylchuk Lutsk

The service declaration can be simplified as autowire is set to true globally for all services.

🇺🇦Ukraine artem_sylchuk Lutsk

The service declaration can be simplified as autowire is set to true globally for all services.

🇺🇦Ukraine artem_sylchuk Lutsk

Thanks for the review!
I've pushed updates to the views hooks MR, but I'm unsure when I'll get to others.
Having each hooks group in a separate issue may not be ideal as it will produce merge conflicts, but it looked too big for me to have a single MR.
Probably, the rest of the issues should be put into postponed status and merged one by one after they are fixed.

🇺🇦Ukraine artem_sylchuk Lutsk

The tests have failed, need to review and fix that.

🇺🇦Ukraine artem_sylchuk Lutsk

I think it would be great to add a simple test that checks those links.

🇺🇦Ukraine artem_sylchuk Lutsk

The tests have passed, however, I'm not sure if we have any tests for the views integration so probably would be great to check if that works fine for Drupal 10.3+

🇺🇦Ukraine artem_sylchuk Lutsk

I tested different formats. SVG and PNG look fine, however, other formats don't.

The HTML div format can be fixed by adding the
.barcode-ean13 .value {position:relative}

And for "binary string" and "Unicode string" it may not make sense to output the code value.
Probably, we should have a note about that on the formatter settings.

Also, #3022641: EAN13 extended code not shown didn't change the output format to SVG in the template, it looks like it was that way from the very beginning, the other templates were updated in #3025572: Image barcode but not the EAN-13 for some reason.

Another note is that the code value still doesn't look perfect, even for the SVG, it requires CSS adjustments for different code dimensions.
I've tried to put the code over an image using PHP but it also requires a lot of work for proper positioning, plus it depends on fonts installed on the system so I gave up the idea and switched to bwip-js instead for my project.

Working on it as part of #LutskGCW25

🇺🇦Ukraine artem_sylchuk Lutsk

I don't remember the exact history of this issue, but as long as it was bumbed, here is what I remember:
1. It is impossible to force the uniqueness of a thread for a given set of members. For example, if user 1 and user 2 have a thread and there is another thread between user 1, user 2, and user 3, by simply removing user 3 from the site, we'll create a collision. There are other possible cases.
2. It may make sense to have two separate things: private conversations between two users and chats with multiple members. Those can be bundles of private message threads, with different "unique" policies.
3. There is another request and "feature" that we probably may want. The thread uniquness may depend on something else except the thread members. For example, it can be limited by some node that references the thread. The idea was to have getThreadEntityForMembers event that can be used for overriding the thread, but it lacks the context.

🇺🇦Ukraine artem_sylchuk Lutsk

Refactored the module's code to avoid errors.
Also removed unrelevant log message.
See the MR #1

🇺🇦Ukraine artem_sylchuk Lutsk

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

🇺🇦Ukraine artem_sylchuk Lutsk

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

🇺🇦Ukraine artem_sylchuk Lutsk

I'm not sure if that's relevant, but MultichoiceQuestion::save() calls

    parent::save();
    $this->forgive();
    $this->warn();

the parent::save method stores the max-score of the question as is (0) and then the "forgive" that sets the max-score per alternative based on the "correct" checkbox. that change was added in https://git.drupalcode.org/project/quiz/-/commit/2c48eea (the D7 comment was saying that we need to "forgive" before saving, it was changed to "after": #3198222: Quiz results score ignores simple question option )

🇺🇦Ukraine artem_sylchuk Lutsk

Thanks for catching that, fix is merged.
However the code there is confusing, the thread entity seems to be stored in the formState several times with different names, I think I'll create another issue for cleaning that up.

🇺🇦Ukraine artem_sylchuk Lutsk

That should be enough for now I think, thanks!

🇺🇦Ukraine artem_sylchuk Lutsk

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

🇺🇦Ukraine artem_sylchuk Lutsk

Private message had a config to hide the format selection that was confusing people.
That setting is removed now as preferable way to handle this is to use Drupal core configuration: https://www.drupal.org/node/3318572
For core versions prior 10.1 the https://www.drupal.org/project/allowed_formats had to be used.

Using WYSIWYG editors and allowing different media for drupal default textare is a topic of a basic Drupal configuration and isn't specific for Private Message as module uses the generic field type for it.

🇺🇦Ukraine artem_sylchuk Lutsk

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

🇺🇦Ukraine artem_sylchuk Lutsk

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

🇺🇦Ukraine artem_sylchuk Lutsk

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

🇺🇦Ukraine artem_sylchuk Lutsk

Let's get this finally merged

🇺🇦Ukraine artem_sylchuk Lutsk

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

🇺🇦Ukraine artem_sylchuk Lutsk

Drupal 9 is no longer supported so I think we can safely move drush services deifinition to the general services.yml file.

🇺🇦Ukraine artem_sylchuk Lutsk

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

🇺🇦Ukraine artem_sylchuk Lutsk

Good catch, thanks for your massive work!

🇺🇦Ukraine artem_sylchuk Lutsk

I hope that additional mesage on the module install will help to not miss the needed steps of the module configuration. The readme already contains mention of the needed steps.

🇺🇦Ukraine artem_sylchuk Lutsk

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

🇺🇦Ukraine artem_sylchuk Lutsk

Awesome work, thank you guys!

🇺🇦Ukraine artem_sylchuk Lutsk

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

🇺🇦Ukraine artem_sylchuk Lutsk

artem_sylchuk changed the visibility of the branch 8.x-2.x to hidden.

Production build 0.71.5 2024