-
Notifications
You must be signed in to change notification settings - Fork 9
Enhance admin tools logs for better readability CRASM-2559 #939
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
Draft
lwersiy
wants to merge
14
commits into
develop
Choose a base branch
from
Enhance-Admin-tools-logs-for-better-readability-CRASM-2559
base: develop
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.
Draft
Enhance admin tools logs for better readability CRASM-2559 #939
lwersiy
wants to merge
14
commits into
develop
from
Enhance-Admin-tools-logs-for-better-readability-CRASM-2559
Conversation
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
…me instead of day ago, Included 2 additional columns that will show what user is assigned to an organization and what user did the assignement.
…om payload logs and display in the appropriate column
…g_schema model, and added a search_logs_filtered function to filter log entries based on advanced, user-specified criteria. Added Pydantic models that structure and validate data for log searching and filtering to user_log_schema.py Added a FastAPI route handler for the endpoint /logs/filtered-search, which allows clients to search logs with advanced filtering capabilities. Refactored Logs.tsx to fetch log data from the backend /logs/filtered-search endpoint; or /logs/search for an unfiltered query.
… user and organizational fields: acting_user, acted_on_user, region, and organization. Replacing User Assigned and Assigned By. 2) Added the new fields to LogSearchFilter Pydantic model.
…rontend, refactored backend operator logics (contains and equals) to enhance filtering, replaced user field with user-type, refactored user log search to apply appropriate operators for timestamp filtering.
…ate_operator to enhance timestamp field filtering
…rt it to backend UTC, ran npm install date-fns-tz which updated package.json and package-lock.json
…_user_email, also made those fields filterable.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
🗣 Description
Existing Behavior
Event
Result
Timestamp
Payload
Details
Expected Behavior
Event
Acting User
Acted-on User
Organization
Region
Role
State
User Type
Timestamp
Result
Payload
💭 Motivation and context
Closes CRASM-2559
🧪 Testing
Tested Locally
<
📷 Screenshots (if appropriate)
✅ Pre-approval checklist
bump_version
script if this repository is versioned and the changes in this PR warrant a version bump.✅ Pre-merge checklist
✅ Post-merge checklist