Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #694
For the Scheduler module to function properly, the scheduler module's cron job needs to be set up correctly. Currently, Drupal's cron is set to run every 3 hours. We likely don't want to wait that long for the scheduler cron to run. We might want to set it to run every 30 minutes or even every minute.
I'm also not sure where we would set the cron job. Publishing and unpublishing entities won't work if the cron job isn't set regularly. The module wasn't functioning correctly when I tested it, so I also had to install the Scheduler Content Moderation Integration module.
Permissions are set as follows
![image](https://private-user-images.githubusercontent.com/72580736/332609773-9c5825d1-6d54-43e6-87c2-1f8a0317ae00.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQwMTQzNTEsIm5iZiI6MTcyNDAxNDA1MSwicGF0aCI6Ii83MjU4MDczNi8zMzI2MDk3NzMtOWM1ODI1ZDEtNmQ1NC00M2U2LTg3YzItMWY4YTAzMTdhZTAwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE4VDIwNDczMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE4ZGQ0MTY3ZmRkYmVjODk1NjI2NjI0NDM1ZDRmN2ViZmZkZGZmZTgxMWE4YzFjZDRlOTkwMDJmZWY1ZWM0MTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.-Do1f8pA8vNpkr0LyjZkSocmWogMhnaS5Sp8LwujOaU)
Currently allowed entities to use the Scheduler module are Books, Builder page, Webforms, and News Items.
For the News content type, I have configured it so that once content is published, the creation time of the news item matches the scheduled publish date. I'm not sure if we want to keep this setting. I did this because we use the node creation time in a Twig file to display the time. This setting is turned off for all other content types. Additionally, I have enabled the creation of new revisions when an entity is published.
![image](https://private-user-images.githubusercontent.com/72580736/332610499-c61f440b-f38b-423d-8316-cbbd23d07c74.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQwMTQzNTEsIm5iZiI6MTcyNDAxNDA1MSwicGF0aCI6Ii83MjU4MDczNi8zMzI2MTA0OTktYzYxZjQ0MGItZjM4Yi00MjNkLTgzMTYtY2JiZDIzZDA3Yzc0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE4VDIwNDczMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNmZmFhNTk3MmQwYjlhNzFmYTZkMGNiMGE1OTBhYjc0ZDQ1NTliNmY3NDMxMmI3ZTEzNWQzOGRjNmVmMTc5ZGMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ZFaRsW7wXt89Tpk2qZKPy4cCC3g2HFtuGDyIZYD6iWE)