-
Notifications
You must be signed in to change notification settings - Fork 0
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
RAILS Upgrade from 6.1.7 to 7.0.8 #345
base: dev
Are you sure you want to change the base?
Conversation
…oadedFile no longer defines finalize method (rack/rack-test@4fa741f)
…irecting to the frontend app
…irecting to the backend app
…irecting to requested links
… avoid empty strings after fetch (even with default values)
Setting session store - did you try to simply remove :timeoutable devise extension? JWT tokens have its own mechanism for invalidating, so technically it should not have connection with :timeoutable. See here: waiting-for-dev/devise-jwt#235 (comment) |
b72d24d
to
426e721
Compare
I didn't try it before. Checked now and there's the same issue: |
@@ -65,19 +65,21 @@ | |||
it_behaves_like 'permitted user' | |||
end | |||
|
|||
context 'when params are invalid' do | |||
context 'when params are invalid', skip: 'behaviour not implemented' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's this line in the service: https://github.com/Michigan-State-University/cias-api/blob/dev/app/services/v1/organizations/dashboard_sections/update.rb#L26
Because of this line, this test fails - updating is being skipped because name is blank and no error is raised
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This spec is improved in another PR, here: https://github.com/Michigan-State-University/cias-api/pull/348/files#diff-f62f8b04d51920e20dcb6f8847bd8b4eb7414c9831b87d5e728775aad2a47d6fR79
@@ -84,19 +84,21 @@ | |||
it_behaves_like 'permitted user' | |||
end | |||
|
|||
context 'when params are invalid' do | |||
context 'when params are invalid', skip: 'behaviour not implemented' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's this line in the service: https://github.com/Michigan-State-University/cias-api/blob/dev/app/services/v1/organizations/update.rb#L37
Because of this line, this test fails - updating is being skipped because name is blank and no error is raised
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This spec is improved in another PR, here: https://github.com/Michigan-State-University/cias-api/pull/348/files#diff-1777d33b8e6195f58ca6bed60ff3bec0ced6c6cc40d1e7c64fa9ccd5df31f0d9R98
@@ -91,19 +91,21 @@ | |||
it_behaves_like 'permitted user' | |||
end | |||
|
|||
context 'when params are invalid' do | |||
context 'when params are invalid', skip: 'behaviour not implemented' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's this line in the service: https://github.com/Michigan-State-University/cias-api/blob/dev/app/services/v1/health_clinics/update.rb#L25
Because of this line, this test fails - updating is being skipped because name is blank and no error is raised
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This spec is improved in another PR, here: https://github.com/Michigan-State-University/cias-api/pull/348/files#diff-8263cc2b6d5e58e0057843f383bc5dd550a1ab52c45e225adf36e42e2472a17fR105
@@ -92,19 +92,19 @@ | |||
end | |||
end | |||
|
|||
context 'when params are invalid' do | |||
context 'when params are invalid', skip: 'behaviour not implemented' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's this line in the service: https://github.com/Michigan-State-University/cias-api/blob/dev/app/services/v1/health_systems/update.rb#L28
Because of this line, this test fails - updating is being skipped because name is blank and no error is raised
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This spec is improved in another PR, here: https://github.com/Michigan-State-University/cias-api/pull/348/files#diff-67e45db134292cfe78542ce3572d21a133e037f29986cba4d2d2f384539786e5R106
let(:message_delivery) { instance_double(ActionMailer::MessageDelivery) } | ||
let(:intervention) { create(:intervention, status: status) } | ||
let(:status) { :draft } | ||
let(:user) { create(:user, :confirmed, :admin) } | ||
|
||
context 'intervention is draft' do | ||
it 'dose not schedule send email' do | ||
expect(InterventionMailer).not_to receive(:inform_to_an_email) | ||
it 'does not schedule send email', skip: 'behaviour not implemented' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method is here: https://github.com/Michigan-State-University/cias-api/blob/dev/app/models/intervention.rb#L141
Status (draft) is nowhere checked. We can add return if draft?
on the top of this method, but is it expected?
@@ -101,8 +108,9 @@ | |||
context "user is #{role}" do | |||
let(:user) { create(:user, :confirmed, role) } | |||
|
|||
it 'dose not schedule send email' do | |||
expect(SessionMailer).not_to receive(:inform_to_an_email) | |||
it 'does not schedule send email', skip: 'behaviour not implemented' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method is here: https://github.com/Michigan-State-University/cias-api/blob/dev/app/models/intervention.rb#L141
The guest
and preview_session
roles are nowhere checked
868ba35
to
e596851
Compare
e596851
to
cd16d33
Compare
Related tasks
What's new?
6.1.7
to7.0.8
Details of solved problems
Why concurrent-ruby fixed to version 1.3.4
Using argon2_options
Keep using Lockbox encryption
nil
values of encrypted data (likeUser.first.email
in terminal)has_encrypted
instead ofencrypts
Setting session store
Fixing reading json schemas
File.read(...)
when reading model schemasOj.load_file(ENV['GOOGLE_APPLICATION_CREDENTIALS'])
Do not define finalizer
Defining `default_url_options[:host]` for test environment
Start using allow_other_host when needed
Adding faraday-multipart gem
Setting default template environment variables
was setting empty strings in
@language
and@voice_type
instance variables (even if there's default value given inENV.fetch
method)