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

Issue#2698 persist column visibility state stage 3 completes issue #3

Open
wants to merge 4 commits into
base: issue#2698_persist_column_visibility_state_stage_2_add_table_state_to_preference_sets_rake_task
Choose a base branch
from

Conversation

GALTdea
Copy link
Owner

@GALTdea GALTdea commented Apr 21, 2023

What github issue is this PR for, if any?

(3/3) #2

What changed, and why?

It adds preference_sets controller with two new actions that will load and update the table_state from preference_sets table. I also adds a service object that will hundle table_state.

How will this affect user permissions?

  • Volunteer permissions:
  • Supervisor permissions:
  • Admin permissions:

How is this tested? (please write tests!) 💖💪

A service test has been added to test this new class. In it I cover 4 cases:
table_state
--when proference_set exist: return the data
--when there's not data: return nil

update
--when the update is successful: updates the table state
--when the update fails: it should raise and error

Screenshots please :)

Feelings gif (optional)

What gif best describes your feeling working on this issue? https://giphy.com/
How to embed:
![alt text](https://media.giphy.com/media/1nP7ThJFes5pgXKUNf/giphy.gif)

Feedback please? (optional)

We are very interested in your feedback! Please give us some :) https://forms.gle/1D5ACNgTs2u9gSdh9

@GALTdea GALTdea force-pushed the issue#2698_persist_column_visibility_state_stage_2_add_table_state_to_preference_sets_rake_task branch from 6135872 to 6c459b6 Compare April 21, 2023 23:45
@GALTdea GALTdea force-pushed the issue#2698_persist_column_visibility_state_stage_3_completes_issue branch from 7d07fb2 to bd76d7b Compare April 21, 2023 23:45
@preference_set ||= PreferenceSet.find_by!(user_id: user_id)
end

end

Choose a reason for hiding this comment

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

add an empty line at the end.

end
end
end
end

Choose a reason for hiding this comment

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

add an empty line.

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.

2 participants