nextcloud / activity

:zap: Activity app for Nextcloud
111 stars 63 forks source link

Exclude specified users from activity expiration #1635

Open akhil1508 opened 3 months ago

akhil1508 commented 3 months ago
akhil1508 commented 3 months ago

Could you take a look at the CI errors?

@artonge Apologies, I didn't run PHP CS Fixer; should be good now

akhil1508 commented 3 months ago

@artonge I don't understand

Error: lib/AppInfo/Application.php:114:11: TooFewArguments: Too few arguments for OCA\Activity\Data::__construct - expecting config to be passed (see https://psalm.dev/025)

As I didn't change lib/AppInfo/Application.php

miaulalala commented 3 months ago

@artonge I don't understand

Error: lib/AppInfo/Application.php:114:11: TooFewArguments: Too few arguments for OCA\Activity\Data::__construct - expecting config to be passed (see psalm.dev/025)

As I didn't change lib/AppInfo/Application.php

You need to register the IConfig injection to https://github.com/nextcloud/activity/blob/59e65d4bce3d3e22548191185fb3a307452f58d5/lib/AppInfo/Application.php#L113-L119

        $context->registerService(Data::class, function (ContainerInterface $c) {
            return new Data(
                $c->get(IManager::class),
                $c->get('ActivityConnectionAdapter'),
                $c->get(LoggerInterface::class),
                $c->get(IConfig::class),
            );
        });
artonge commented 3 months ago

Could you also squash your commits into one?

akhil1508 commented 3 months ago

Could you also squash your commits into one?

@artonge done

miaulalala commented 3 months ago

Tests need the new constructor properties :)

github-actions[bot] commented 2 months ago

Hello there, Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

akhil1508 commented 2 months ago

Tests need the new constructor properties :)

@miaulalala Done. I will squash again and fix commit push after final approval(s) to avoid doing it many times.

artonge commented 2 months ago

Still one minor lint error

akhil1508 commented 2 months ago

Still one minor lint error

@artonge Fixed

artonge commented 2 months ago

@artonge Fixed

Almost :)