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

[14.0][ADD] cooperator_website_recaptcha #44

Open
wants to merge 14 commits into
base: 14.0
Choose a base branch
from

Conversation

huguesdk
Copy link
Member

@huguesdk huguesdk commented Dec 9, 2022

move cooperator_website_recaptcha module from coopiteasy/vertical-cooperative to the oca.

this branch contains an extra refactoring commit (from the 14.0-ref-cooperator_website_recaptcha_to_portal_recaptcha branch) that should be reviewed. this refactoring depends on #42 and OCA/website#928.

Copy link
Member

@carmenbianca carmenbianca left a comment

Choose a reason for hiding this comment

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

LGTM

@github-actions
Copy link

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Apr 23, 2023
@robinkeunen
Copy link
Contributor

@carmenbianca or @huguesdk can you have a look at the tests ?

@robinkeunen
Copy link
Contributor

and in #43 (comment) as well

@huguesdk
Copy link
Member Author

@robinkeunen these tests fail because they depend on OCA/website#928 which is not merged (but ci passes). i was about to ping a maintainer to merge it, but i saw that the ci on the 12.0 version of that branch (OCA/website#928) fails because of OCA/maintainer-quality-tools#712. i’ve just created OCA/maintainer-quality-tools#715 to fix it. let’s see if this will make things move forward.

@github-actions github-actions bot removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Apr 30, 2023
@victor-champonnois victor-champonnois force-pushed the 14.0-add-cooperator_website_recaptcha branch from 8cc7e82 to c9ee8bf Compare July 13, 2023 09:40
Copy link
Member

@victor-champonnois victor-champonnois left a comment

Choose a reason for hiding this comment

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

LGTM (functional and code)
I see the refacto will prevent from being able to configure the recaptcha by company. Is it an issue with the new multi-company functionalities ?

@victor-champonnois
Copy link
Member

victor-champonnois commented Jul 13, 2023

Todo :

@victor-champonnois victor-champonnois force-pushed the 14.0-add-cooperator_website_recaptcha branch from 6d0b07d to 977bf4e Compare July 13, 2023 09:50
@huguesdk
Copy link
Member Author

the only thing that was moved out of the company was a boolean controlling whether recaptcha is enabled or not. however, previously, the recaptcha keys were stored on the website, as we can see here. this was changed to remove the dependency on website, but this effectively made the settings global. do you know why the dependency on website had to be removed?

i think you’re right regarding multi-company. the 3 config settings should probably be stored on the company (or on the website). recaptcha keys work per domain. i don’t know yet how websites work in multi-company mode, but if different companies use different domains, they will need different recaptcha keys. maybe introduce a new module depending on portal_recaptcha and website that stores the settings on the website instead of globally?

this can be handled separately though, as it is an improvement to the current state.

@victor-champonnois
Copy link
Member

@huguesdk OK for handling separately

@victor-champonnois
Copy link
Member

victor-champonnois commented Jul 31, 2023

Turns out there is a standard Odoo recaptcha module in 14, should we use it rather than portal_recaptcha ?

Copy link

github-actions bot commented Jan 7, 2024

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Jan 7, 2024
* move the recaptcha widget view to portal_recaptcha.
* remove res.company.captcha_type (portal_recaptcha can now be enabled
  and disabled in the settings).
* override WebsiteSubscription._additional_validate() instead of
  .validation().
fix author and website manifest properties to follow oca's guidelines.
use website_recaptcha_v2 instead of portal_recaptcha.
@huguesdk huguesdk added no stale Use this label to prevent the automated stale action from closing this PR/Issue. and removed stale PR/Issue without recent activity, it'll be soon closed automatically. labels Jan 16, 2024
@huguesdk huguesdk force-pushed the 14.0-add-cooperator_website_recaptcha branch from 977bf4e to 928548c Compare January 16, 2024 10:05
@huguesdk
Copy link
Member Author

i’ve refactored the module to use website_recaptcha_v2 (OCA/website#1030). tests will be failing until it is merged.

Copy link
Sponsor Member

@dreispt dreispt left a comment

Choose a reason for hiding this comment

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

Can commits be squashed please.

@huguesdk
Copy link
Member Author

huguesdk commented May 3, 2024

@dreispt since this is a move from our non-oca repository to here, i think keeping the history is important (same as for a migration pr). could you please help with getting OCA/website#1030 merged (on which this pr depends)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved help wanted needs fixing no stale Use this label to prevent the automated stale action from closing this PR/Issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants