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

Add archive option for account types #758

Merged
merged 1 commit into from
Oct 13, 2023

Conversation

o-psi
Copy link
Contributor

@o-psi o-psi commented Oct 13, 2023

Account Type Archiving:

Added a check to detect if archive_account_type is set in the $_GET request.
When set, the respective account type is marked as archived by updating the account_type_archived_at column in the account_types table with the current timestamp.
Logging:
When an account type is archived, a new entry is added to the logs table.
Type: Account Type
Action: Archive
Description: Contains the archived account's ID.
IP & User Agent: Captured from the session data.
Notification & Redirection:
A session alert message "Account Archived" is set after successful archiving.
User is then redirected back to the referring page.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@wrongecho
Copy link
Collaborator

Test these changes at: https://addarchiveforaccounttypes758.pr-review.itflow.org
(automatic message)

@johnnyq johnnyq merged commit ff42433 into itflow-org:master Oct 13, 2023
4 checks passed
@o-psi o-psi deleted the add-archive-for-account-types branch October 14, 2023 03:11
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