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

API-36203 banner data model #490

Merged
merged 14 commits into from
Jul 9, 2024
Merged

API-36203 banner data model #490

merged 14 commits into from
Jul 9, 2024

Conversation

dmekala-va
Copy link
Contributor

This PR adds a data model and accessor class for the saml proxy banner. The banner.js represents the banner data model with banner parameters. And the BannerService implements the CRUD operations for banners in a Redis store.

Link to Jira: https://jira.devops.va.gov/browse/API-36203

@dmekala-va dmekala-va requested a review from a team as a code owner July 2, 2024 16:55
test/testBannerService.ts Fixed Show fixed Hide fixed
src/banner.js Outdated Show resolved Hide resolved
src/bannerService.ts Show resolved Hide resolved
src/bannerService.ts Outdated Show resolved Hide resolved
src/bannerService.ts Outdated Show resolved Hide resolved
src/bannerService.ts Outdated Show resolved Hide resolved
src/bannerService.ts Outdated Show resolved Hide resolved
src/bannerService.ts Outdated Show resolved Hide resolved
@dmekala-va
Copy link
Contributor Author

Comments addressed

src/banner.ts Outdated Show resolved Hide resolved
src/bannerService.ts Show resolved Hide resolved
src/bannerService.ts Show resolved Hide resolved
src/bannerService.ts Show resolved Hide resolved
src/bannerService.ts Show resolved Hide resolved
src/bannerService.ts Outdated Show resolved Hide resolved
src/banner.ts Outdated Show resolved Hide resolved
src/banner.ts Outdated Show resolved Hide resolved
src/bannerService.ts Show resolved Hide resolved
src/bannerService.ts Show resolved Hide resolved
src/banner.ts Outdated Show resolved Hide resolved
src/banner.ts Outdated Show resolved Hide resolved
try {
const key = this.generateKey(banner.id);
const value = JSON.stringify(banner);
const ttl = 604800;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just a note, but thinking about this more ttl will end up being set to match the endTime. Can be updated in the next phase.

@mwise-va mwise-va merged commit e17d861 into master Jul 9, 2024
4 checks passed
@mwise-va mwise-va deleted the API-36203-banner-model branch July 9, 2024 16:48
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.

3 participants