Skip to content

[frontend] fix selector #3023

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
wants to merge 3 commits into
base: release/current
Choose a base branch
from
Open

Conversation

guillaumejparis
Copy link
Member

Proposed changes

Related issues

Checklist

  • I consider the submitted work as finished
  • I tested the code for its functionality
  • I wrote test cases for the relevant uses case
  • I added/update the relevant documentation (either on github or on notion)
  • Where necessary I refactored code to improve the overall quality
  • For bug fix -> I implemented a test that covers the bug

Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...

Copy link

codecov bot commented Apr 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 41.20%. Comparing base (7c65260) to head (8b5a551).

Additional details and impacted files
@@                Coverage Diff                 @@
##             release/current    #3023   +/-   ##
==================================================
  Coverage              41.20%   41.20%           
  Complexity              2286     2286           
==================================================
  Files                    682      682           
  Lines                  20937    20937           
  Branches                1424     1424           
==================================================
  Hits                    8627     8627           
  Misses                 11824    11824           
  Partials                 486      486           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@RomuDeuxfois RomuDeuxfois self-requested a review April 25, 2025 07:51
@RomuDeuxfois
Copy link
Member

Bugs:

  • plus button is no present on players page

@savacano28
Copy link
Contributor

savacano28 commented Apr 25, 2025

To check if this PR resolves the following issues:

  • Button to add players.
  • Settings section disappear after clicking Settings/Security.
  • Error when clicking Settings/Security.
  • Error when clicking Settings/Taxonomies/Kill Chain Stages.

Thank you!

const useStyles = makeStyles()(() => ({ itemHead: { textTransform: 'uppercase' } }));
const useStyles = makeStyles()(() => ({
itemHead: { textTransform: 'uppercase' },
item: { height: 50 },
Copy link
Member

Choose a reason for hiding this comment

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

Not sur we want this.

Copy link
Member Author

@guillaumejparis guillaumejparis Apr 25, 2025

Choose a reason for hiding this comment

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

On prerealease :
image

On my branch :
image

Others screens where you canclick on the line :
image
image
image

@@ -815,13 +815,13 @@ ToolBar.propTypes = {

const select = (state, ownProps) => {
const helper = storeHelper(state);
const endpoints = helper.getEndpoints()
const endpoints = helper.getEndpoints().toJS()
Copy link
Member

Choose a reason for hiding this comment

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

Why toJS ?

Copy link
Member Author

Choose a reason for hiding this comment

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

In these .js files, getting data from the store is done with the connect function from react redux so unlike useHelper I can not add an invisble layer of toJS conversion

@RomuDeuxfois
Copy link
Member

To check if this PR resolves the following issues:

  • Button to add players. -> not fixed
  • Settings section disappear after clicking Settings/Security. -> fixed
  • Error when clicking Settings/Security. -> fixed
  • Error when clicking Settings/Taxonomies/Kill Chain Stages. -> fixed

@guillaumejparis
Copy link
Member Author

Yes nice catch for the players one @RomuDeuxfois @savacano28

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.

Improve redux selector to avoid performances issues when we have a lot of events in the stream
3 participants