-
Notifications
You must be signed in to change notification settings - Fork 183
[policies] Add infrastructure to track user decisions to policies #9818
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
Open
skarya22
wants to merge
20
commits into
aces:main
Choose a base branch
from
skarya22:2025_08_22_Policy_Consent_Tracking_Infrastructure
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
d41412d
[policies] Add infrastructure to track user decisions to policies
skarya22 4cf2f1c
Add rest of the files
skarya22 8377716
Fix for lint
skarya22 1079cf2
Login test plan
skarya22 cd193a6
Update unit test
skarya22 ef87966
Lint fixes
skarya22 db25ee7
Fix spacing
skarya22 2bbb942
Fix spacing again
skarya22 a444d7a
Attempt to fix tests
skarya22 b69ea56
One more time
skarya22 366968b
Merge remote-tracking branch 'aces/main' into 2025_08_22_Policy_Conse…
skarya22 21a89f0
Rework to not have htdocs
skarya22 1c79bd6
Forgot to add new policy_tracker module
skarya22 daddb8c
Remove leftover code from webpack
skarya22 df87735
Reverse the fix for a lint test to make it work again?
skarya22 471a605
Fix phan tests
skarya22 3c88a1c
Merge remote-tracking branch 'aces/main' into 2025_08_22_Policy_Conse…
skarya22 7add0e0
Requested changes and enforce when declined
skarya22 2db791c
Fix formatting
skarya22 d4589e9
Fix formatting again
skarya22 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
CREATE TABLE policies ( | ||
PolicyID INT AUTO_INCREMENT PRIMARY KEY, | ||
Name VARCHAR(255) NOT NULL, | ||
Version INT NOT NULL, | ||
ModuleID INT NOT NULL, -- Show in the header for a module | ||
PolicyRenewalTime INT DEFAULT 7, -- Number of days before the policy is renewed | ||
PolicyRenewalTimeUnit enum('D','Y','M','H') DEFAULT 'D', -- Unit of the renewal time | ||
Content TEXT NULL, | ||
SwalTitle VARCHAR(255) DEFAULT 'Terms of Use', | ||
HeaderButton enum('Y','N') DEFAULT 'Y', | ||
HeaderButtonText VARCHAR(255) DEFAULT 'Terms of Use', | ||
Active enum('Y','N') DEFAULT 'Y', | ||
AcceptButtonText VARCHAR(255) DEFAULT 'Accept', | ||
DeclineButtonText VARCHAR(255) DEFAULT 'Decline', | ||
CreatedAt DATETIME DEFAULT CURRENT_TIMESTAMP, | ||
UpdatedAt DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP | ||
); | ||
|
||
CREATE TABLE user_policy_decision ( | ||
ID INT AUTO_INCREMENT PRIMARY KEY, | ||
UserID INT NOT NULL, | ||
PolicyID INT NOT NULL, | ||
Decision enum('Accepted','Declined') NOT NULL, | ||
DecisionDate DATETIME DEFAULT CURRENT_TIMESTAMP | ||
); | ||
|
||
INSERT INTO modules (`Name`, `Active`) VALUES ('policy_tracker','Y'); |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.