stable

Clone or download

Read-only

An expiration date can be set on the platform banner

This date is however not yet taken into account for the display of the banner and is not visible in the site administration UI. Part of story #21342: auto disable site banner after a given time Change-Id: I6cf0290391956d2f91ea8402a7a46155eb4f893c

Modified Files

Name
M src/common/Platform/Banner/Banner.php +10 −3 Go to diff View file
M src/common/Platform/Banner/BannerCreator.php +8 −6 Go to diff View file
M src/common/Platform/Banner/BannerDao.php +11 −6 Go to diff View file
M src/common/Platform/Banner/BannerRetriever.php +3 −1 Go to diff View file
A src/common/Platform/Banner/CannotCreateAnAlreadyExpiredBannerException.php +31 −0 Go to diff View file
M src/common/Platform/Banner/REST/v1/BannerRepresentation.php +12 −4 Go to diff View file
M src/common/Platform/Banner/REST/v1/BannerResource.php +24 −1 Go to diff View file
M src/db/mysql/database_structure.sql +2 −1 Go to diff View file
A src/db/mysql/updates/2021/202106291030_add_expiration_date_platform_banner.php +49 −0 Go to diff View file
M tests/rest/tests/PlatformBannerTest.php +2 −0 Go to diff View file
M tests/unit/common/Platform/Banner/BannerCreatorTest.php +29 −10 Go to diff View file
M tests/unit/common/Platform/Banner/BannerRetrieverTest.php +7 −4 Go to diff View file