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

4563 replace instance and audit logs dropdowns #4567

Merged
merged 33 commits into from
Nov 25, 2024

Conversation

cstns
Copy link
Contributor

@cstns cstns commented Sep 25, 2024

Description

Related Issue(s)

closes #4563

Checklist

  • I have read the contribution guidelines
  • Suitable unit/system level tests have been added and they pass
  • Documentation has been updated
    • Upgrade instructions
    • Configuration details
    • Concepts
  • Changes flowforge.yml?
    • Issue/PR raised on FlowFuse/helm to update ConfigMap Template
    • Issue/PR raised on FlowFuse/CloudProject to update values for Staging/Production

Labels

  • Includes a DB migration? -> add the area:migration label

@cstns cstns self-assigned this Sep 25, 2024
Copy link

codecov bot commented Sep 25, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 78.74%. Comparing base (a92555d) to head (0c5343d).
Report is 34 commits behind head on main.

Files with missing lines Patch % Lines
forge/db/models/AuditLog.js 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4567      +/-   ##
==========================================
- Coverage   78.74%   78.74%   -0.01%     
==========================================
  Files         314      314              
  Lines       15093    15090       -3     
  Branches     3476     3473       -3     
==========================================
- Hits        11885    11882       -3     
  Misses       3208     3208              
Flag Coverage Δ
backend 78.74% <75.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

'team.id' () {
this.loadUsers()
'team.id': {
handler: function (teamId) { if (teamId) this.loadUsers() },
Copy link
Contributor Author

Choose a reason for hiding this comment

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

addressed a bug where team members were not loaded when the page loaded, resulting in an empty users list

@cstns cstns requested a review from Steve-Mcl September 27, 2024 07:09
Base automatically changed from 4559_create-a-new-listbox-component to main September 27, 2024 08:58
Copy link
Contributor

@Steve-Mcl Steve-Mcl left a comment

Choose a reason for hiding this comment

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

Happy to approve @cstns but firstly, I am curious why we are only doing the Envent Type and User but not the Event Scope immediately above?

Should the items on a single page not be done in tandem?

Happy to proceed, but thought to ask in case it was an oversight.

chrome_BNVadnwdBU

@cstns
Copy link
Contributor Author

cstns commented Sep 27, 2024

It wasn't oversight, It's just the crazy way I managed to split the input's when creating the tasks, Should be fixed by #4561

@cstns cstns requested a review from Steve-Mcl September 27, 2024 14:21
@cstns cstns changed the base branch from main to 4562_replace-assetCompare-visibility-selector-and-logs-dropdowns September 30, 2024 10:15
@cstns cstns changed the base branch from 4562_replace-assetCompare-visibility-selector-and-logs-dropdowns to main September 30, 2024 10:17
…-and-audit-logs-dropdowns

# Conflicts:
#	frontend/src/pages/instance/AuditLog.vue
@cstns cstns requested a review from Steve-Mcl November 22, 2024 12:35
@cstns
Copy link
Contributor Author

cstns commented Nov 22, 2024

should be good to go after everything goes green

Copy link
Contributor

@Steve-Mcl Steve-Mcl left a comment

Choose a reason for hiding this comment

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

looks good, unfortunately on the instance logs, changing user is not filtering (it does work on team and application views)

A quick look at FFC & this looks like an existing issue - perhaps it could be something simple to handle in this PR?

chrome_1oZd2FbJHV

the admin section's audit log browser was sending the username and event with empty payloads which messed with the db query
@cstns cstns merged commit 58be955 into main Nov 25, 2024
13 checks passed
@cstns cstns deleted the 4563_replace-instance-and-audit-logs-dropdowns branch November 25, 2024 11:18
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.

Replace the InstanceLogs and AuditLogBrowser ff-dropdown with the new ff-listbox component
3 participants