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

adds petition button on organizations/show page, plus bug fix and security fix #717

Merged

Conversation

nflorentin
Copy link
Contributor

@nflorentin nflorentin commented Dec 6, 2023

Security fix:
do not let client side send the petition status, controller should define it

Improvements:
New petition button and destroy member buttons are extracted into a partial and use in organizations/show page.

Bug fix:
An admin on an organization A was seeing "edit organization button" on organizations/show page of organization B.

Closes #715

@nflorentin nflorentin force-pushed the organizations-show-improvements branch from eae4404 to 721115e Compare December 6, 2023 20:32
Copy link
Collaborator

@markets markets left a comment

Choose a reason for hiding this comment

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

Thanks again @nflorentin!

We're going to test a bit in staging (https://staging.timeoverflow.org) and prepare a release!

Current diff: v4.3.0...develop

@markets markets merged commit 87139a2 into coopdevs:develop Dec 7, 2023
1 of 2 checks passed
@markets
Copy link
Collaborator

markets commented Dec 7, 2023

Deployed to staging @sseerrggii @nflorentin 🎉

These are all the changes: v4.3.0...develop

If you can take a look 👁️ and validate it ✔️, I can prepare the production release tomorrow or during the weekend.

Thank you so much!

By the way @nflorentin, in staging you can use the users defined in our seeds: https://github.com/coopdevs/timeoverflow/blob/develop/db/seeds.rb#L4 to test the app.

@sseerrggii
Copy link
Contributor

sseerrggii commented Dec 7, 2023

I crash staging testing 🤕

I changed de document (terms and conditions) to validate #712 and when I tried to enter with a new user i saw too_many_redirects error

Captura de pantalla_2023-12-07_21-15-15

Also I tried to test #714 uploading SVG file on organization form https://staging.timeoverflow.org/organizations/7/edit and returns error 500. I can not undo it, i tried to restart application but still some pages return error

BdT-pont-del-Dimoni-Test

@nflorentin
Copy link
Contributor Author

@sseerrggii I will try to reproduce the 2 problems tomorrow.

Can you send me the svg you uploaded ?

Thanks

@sseerrggii
Copy link
Contributor

Yes, it was a random svg, but exactly was

woman-with-a-cane-svgrepo-com (1)

@nflorentin
Copy link
Contributor Author

@sseerrggii I reproduced the problem with organization logo and fix it, I made a new PR.

But I could not reproduce the problem with terms document. What I did was :

  • with super admin, make a little change to terms document, and save
  • in private chrome tab, sign in as member
    As member, I'm seeing the new term document to accept. I do not see the infinite redirects loop, don't know why.
    Did you do the exact same on staging ?

I tried to connect to staging and I'm effectively have the infinite redirects loop.
I would need staging logs to understand the problem.

@markets for info

@markets
Copy link
Collaborator

markets commented Dec 8, 2023

Hi @nflorentin @sseerrggii 👋🏼

Just redeployed the SVG error on staging (5d56ea6), but I'm unable to reproduce the "too many redirects" issue neither.

@sseerrggii
Copy link
Contributor

Hi!!

SVG probleme fixed ✔️

I can not reproduce again the problem with terms and conditions, let's approve it! I will ask @danypr92 to grant access to @nflorentin to staging server

Thank you @nflorentin and @markets 🥇

@markets
Copy link
Collaborator

markets commented Dec 9, 2023

Nice! Thanks @sseerrggii 🤝

I'm going to prepare a production release during this weekend 🎉

@markets
Copy link
Collaborator

markets commented Dec 9, 2023

@nflorentin @sseerrggii v4.4.0 is now live 🚀 https://github.com/coopdevs/timeoverflow/releases/tag/v4.4.0

@nflorentin
Copy link
Contributor Author

Thanks @sseerrggii and @markets for your work

Have a nice week-end !

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.

Visitors have difficulty finding how to join the timebank
3 participants