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

Get login duration from backend #4830

Merged
merged 31 commits into from
Aug 9, 2023
Merged

Conversation

ErinClaudio
Copy link
Collaborator

@ErinClaudio ErinClaudio commented May 16, 2023

What github issue is this PR for, if any?

Resolves ##4725

What changed, and why?

  • the config.timeout_in = 3.hours has been passed into here
  • This hardcoded value is now accessible as an instance variable

How will this affect user permissions?

  • Volunteer permissions: login duration
  • Supervisor permissions: login duration
  • Admin permissions: login duration

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

here

I will need to include the Jasmine gem per Shen's guidance to create a test that simulates the passage of time.
This task has been created as a new issue ticket.
This is why the second test has not yet been completed.

Screenshots please :)

Screenshot 2023-08-03 at 11 14 48 AM

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

Is it better to list more or fewer reviewers? Not sure what is best practice for Casa
Thank you

@github-actions github-actions bot added erb javascript for use by Github Labeler to mark pull requests that update Javascript code ruby Pull requests that update Ruby code labels May 16, 2023
@ErinClaudio ErinClaudio force-pushed the get-login-duration-from-backend branch from 701b190 to c8c9616 Compare June 28, 2023 19:17
@ErinClaudio ErinClaudio force-pushed the get-login-duration-from-backend branch 3 times, most recently from efebf6b to d3ad20a Compare July 25, 2023 23:57
@ErinClaudio
Copy link
Collaborator Author

  • write system tests

@ErinClaudio ErinClaudio force-pushed the get-login-duration-from-backend branch 2 times, most recently from d5d31c6 to c5fbc53 Compare July 27, 2023 18:37
@ErinClaudio ErinClaudio force-pushed the get-login-duration-from-backend branch from c5fbc53 to c50a776 Compare August 2, 2023 17:38
@ErinClaudio ErinClaudio marked this pull request as ready for review August 3, 2023 15:18
@ErinClaudio ErinClaudio requested review from FireLemons and compwron and removed request for compwron and FireLemons August 3, 2023 15:18
end

xit "warns the user two mintues before logout", js: true do
end
Copy link
Collaborator

Choose a reason for hiding this comment

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

@ErinClaudio this looks good! Can you just remove this spec on line 15 if we are not going to test for it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

you got it and Thank you

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@littleforest Thank you for the review. When you have a moment please

@ErinClaudio ErinClaudio force-pushed the get-login-duration-from-backend branch from 1022cde to b3a81b6 Compare August 7, 2023 17:47
@FireLemons FireLemons merged commit b46a5d0 into main Aug 9, 2023
14 checks passed
@FireLemons FireLemons deleted the get-login-duration-from-backend branch August 9, 2023 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
erb javascript for use by Github Labeler to mark pull requests that update Javascript code ruby Pull requests that update Ruby code Tests! 🎉💖👏
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants