Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue-693: Disallow scheduler on locked pages (when scheduler module is enabled) #770

Open
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

sonvir249
Copy link
Contributor

Closes #693

@sonvir249 sonvir249 changed the title Issue-693: Disallow scheduler on locked pages (if scheduler module is enabled) Issue-693: Disallow scheduler on locked pages (when scheduler module is enabled) Dec 15, 2024
@amitaibu
Copy link
Member

Thanks. As tests are not running on forked PRs, can you please attach screenshots of phpstan, phpcs and phpunit executed.

@sonvir249
Copy link
Contributor Author

Thanks. As tests are not running on forked PRs, can you please attach screenshots of phpstan, phpcs and phpunit executed.

@amitaibu Please check the attached screenshots of phpstan, phpcs and phpunit commands.

ddev phpstan
image
phpcs
image
ddev phpunit
image

@amitaibu
Copy link
Member

Thanks, can you execute all tests please.

@sonvir249
Copy link
Contributor Author

Thanks, can you execute all tests please.

I have fixed a phpstan test case issue in a0b8773

ddev phpstan
image

*/
function server_general_scheduler_unpublishing_allowed(NodeInterface $entity) {
// Do nothing if node is not a landing page.
if ($entity->bundle() !== 'landing_page') {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's confirm also that entity type is node

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@amitaibu I'm already passing NodeInterface as an argument. Do we still need to explicitly check for entity type node ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disallow scheduler on locked pages (if scheduler module is enabled)
2 participants