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

Tech: utilise des colonnes id dans les ProcedurePresentation #10850

Merged
merged 13 commits into from
Oct 8, 2024

Conversation

LeSim
Copy link
Member

@LeSim LeSim commented Sep 23, 2024

No description provided.

Copy link

sentry-io bot commented Sep 23, 2024

🔍 Existing Issues For Review

Your pull request is modifying functions with the following pre-existing issues:

📄 File: app/models/procedure_presentation.rb

Function Unhandled Issue
add_filter [**NoMethodError: undefined method table' for nil (NoMethodError)**](https://demarches-simplifiees.sentry.io/issues/5766127130/?referrer=github-open-pr-bot) Instructeurs::ProceduresContro... <br> Event Count:` 4

Did you find this useful? React with a 👍 or 👎

Copy link

codecov bot commented Sep 23, 2024

Codecov Report

Attention: Patch coverage is 96.92308% with 2 lines in your changes missing coverage. Please review.

Project coverage is 84.69%. Comparing base (73eed5d) to head (d5a722c).
Report is 14 commits behind head on main.

Files with missing lines Patch % Lines
app/models/types_de_champ/yes_no_type_de_champ.rb 50.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10850      +/-   ##
==========================================
+ Coverage   84.68%   84.69%   +0.01%     
==========================================
  Files        1130     1130              
  Lines       25060    25082      +22     
  Branches     4704     4706       +2     
==========================================
+ Hits        21221    21243      +22     
  Misses       3839     3839              

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

@LeSim LeSim marked this pull request as ready for review September 23, 2024 15:28
updated_filtered_columns = filtered_columns.dup
updated_filtered_columns[statut] << { id: column_id, filter: value }

update(filters: updated_filters, filtered_columns: updated_filtered_columns)
Copy link
Member

Choose a reason for hiding this comment

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

pourquoi t'a besoin de continuer d'écrire dans filters ?

Copy link
Member

Choose a reason for hiding this comment

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

Ah, tu implémenteras que le write ici et le read sera implémenté dans une autre PR ? Donc pour l'instant, tu as besoin des deux, c'est ça ?

@LeSim LeSim force-pushed the add_id_to_column branch 8 times, most recently from 010cda2 to e449a94 Compare September 26, 2024 15:22
@LeSim LeSim force-pushed the add_id_to_column branch 3 times, most recently from 07dadb2 to 74bb542 Compare October 7, 2024 16:16
@LeSim LeSim force-pushed the add_id_to_column branch from 74bb542 to d5a722c Compare October 7, 2024 20:10
@LeSim LeSim added this pull request to the merge queue Oct 8, 2024
Merged via the queue into main with commit c072ee7 Oct 8, 2024
19 checks passed
@LeSim LeSim deleted the add_id_to_column branch October 8, 2024 07:50
Comment on lines +25 to +34
presentation.filters.each do |key, filters|
raw_columns = filters.map do
{
id: make_id(procedure_id, _1['table'], _1['column']),
filter: _1['value']
}
end

presentation.send("#{presentation.filters_name_for(key)}=", raw_columns)
end
Copy link
Contributor

Choose a reason for hiding this comment

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

yeap, le backfill est OK

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