-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
Sort by Download and rating #46
Sort by Download and rating #46
Conversation
Work in progress for the |
Hey @bizzappdev, thank you for your Pull Request. It looks like some users haven't signed our Contributor License Agreement, yet.
Appreciation of efforts, |
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.
LGTM
@@ -6,6 +6,7 @@ | |||
odoo.define('website_apps_store.website_sale', function (require) { | |||
'use strict'; | |||
|
|||
console.log("222222222222@@") |
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.
probably some cleansing
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.
removed
and bump version |
@bizzappdev did you sign an enterprise CLA? This would cover your colleague |
Yea we have signed from company. |
Contact created and GH login associated to email. It should fix the CLA warning |
added in hte GH login |
actually unclear the login |
@RoelAdriaans @oscarolar @StephanRozendaal can you please review |
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.
LGTM
This PR has the |
@sbidoul please deploy at your convenience |
@sbidoul just make sure it has website_form_recaptcha in depends now so might be you have to configure the google recaptcha for that |
Do you have a pointer about how to do that? |
@sbidoul reference: https://github.com/OCA/website/blob/11.0/website_form_recaptcha/README.rst#configuration |
@sbidoul I am not sure whether you could fully deploy this feature. |
@sbidoul Let me know if you need a helping hand to deploy this. |
@bizzappdev I've deployed this, and configured the recaptcha system parameters. The download button seems broken though. I don't immediately see why. Can you have a look? Here the js error: |
Checking in 10 mins |
@sbidoul I am not getting JS Error . |
Hm, on firefox I get the js error, on chrome error 500. Here is the stack trace with chrome:
|
@bizzappdev apparently website_form_recaptcha changed quite a bit recently: https://github.com/OCA/website/commits/11.0/website_form_recaptcha @simahawk @mpanarin maybe you could advise if your recent changes were meant to be backward incompatible or if there is a wrong usage of the module here. |
@sbidoul 500 error is because of OCA/website@f46d879#diff-f814babc2091d16e881f56ccf23ec954 |
@bizzappdev let's wait what @simahawk says about the api change in website_form_recaptcha In the meantime I deployed OCA/website@f255902
The acces error is at
|
@bizzappdev @sbidoul using the captcha now: captcha_obj = request.env['website.form.recaptcha']
try:
captcha_obj.validate_request(
request, kw.get(captcha_obj.RESPONSE_ATTR)
)
except ValidationError:
# do what you want the renaming happened because we have 2 validation methods, one for the request and one for the response. Regarding "stable" version... well, we are not Odoo SA and if we (authors and reviewers) think the design is getting better we change it anyway w/out waiting for the next major release. That being said, if you think it can help, I can add a backward compat method that proxies the new one for v11. JS has been refactored as well and it's easier now to customize it (it also fixes and issue w/ translations). |
Thanks all for your help! |
Tested and it works fine now |
@simahawk on OCA, we have relaxed rules about changing DB layout or API than Odoo, but that doesn't mean that you can break other modules by changing it in the middle of the version. The proper thing to do is to provide the wrapper for compatibility and put a comment that it should be removed on next version migration, or make sure across all OCA that no other module is using it (which is difficult, so better option 1). |
@pedrobaeza you are right and as said I thought about it and forgot it. 😭 BTW I see there's no maturity flag here https://github.com/OCA/website/blob/11.0/website_crm_recaptcha/__manifest__.py |
The maturity by default is beta, but it's very difficult to check that conditions without failing on false positive and negative cases and for me any maturity level except alpha should preserve this stability, so we should rely on the good will of the contributor and reviewers. |
ok, noted, tnx :) |
* [WIP] added initial support for Google recaptcha * [WIP]added dependencies * [IMP]Added google captcha with download functionality with reset and validation * [IMP]added download count fields and increament it when donwloaded * [ADD]added missing files * [IMP]website_apps_store: add sort by download count on website * remove console and not extra space * [VER]changed version number * [FIX]website_apps_store: fix test case error * [FIX]reset only if google recaptcha is initiated
* [WIP] added initial support for Google recaptcha * [WIP]added dependencies * [IMP]Added google captcha with download functionality with reset and validation * [IMP]added download count fields and increament it when donwloaded * [ADD]added missing files * [IMP]website_apps_store: add sort by download count on website * remove console and not extra space * [VER]changed version number * [FIX]website_apps_store: fix test case error * [FIX]reset only if google recaptcha is initiated
* [WIP] added initial support for Google recaptcha * [WIP]added dependencies * [IMP]Added google captcha with download functionality with reset and validation * [IMP]added download count fields and increament it when donwloaded * [ADD]added missing files * [IMP]website_apps_store: add sort by download count on website * remove console and not extra space * [VER]changed version number * [FIX]website_apps_store: fix test case error * [FIX]reset only if google recaptcha is initiated
* [WIP] added initial support for Google recaptcha * [WIP]added dependencies * [IMP]Added google captcha with download functionality with reset and validation * [IMP]added download count fields and increament it when donwloaded * [ADD]added missing files * [IMP]website_apps_store: add sort by download count on website * remove console and not extra space * [VER]changed version number * [FIX]website_apps_store: fix test case error * [FIX]reset only if google recaptcha is initiated
update products attributes and create attribute values (OCA#40) * [FIX]update the product for the new version * [FIX]max version problem and also rewrite logic so the from fronend if the version is not selected manually then the default(with less sequence) will be downloaded * [IMP]added technical name search functionality * change version number * [IMP]Merged create and update product cron job * [FIX]fix variable names Fix Bad rendering of links inside README (OCA#42) * [FIX][OCA#37]fix rendering from README * [ADD]added CONTRIBUTORS * [FIX] Sorting problem. sorted(for getting default version) as similar as it is sorted from website view [FIX]visibility for the selected options and filters improvements (OCA#43) * [FIX]visibility for the selection options and do not loss the selection option when we change filter from maturity to version etc. * [VER]Added Version number [FIX]CSS module description [FIX]website_apps_store: fix the shop pager [FIX][49] solve pager with search parameter (OCA#51) Sort by Download and rating (OCA#46) * [WIP] added initial support for Google recaptcha * [WIP]added dependencies * [IMP]Added google captcha with download functionality with reset and validation * [IMP]added download count fields and increament it when donwloaded * [ADD]added missing files * [IMP]website_apps_store: add sort by download count on website * remove console and not extra space * [VER]changed version number * [FIX]website_apps_store: fix test case error * [FIX]reset only if google recaptcha is initiated 11.0 issue OCA#50 add the module technical name in front page (OCA#52) * [FIX][49] solve pager with search parameter * [IMP]website_apps_store : add technical name in front page * [IMP]website_apps_store : add website tour to search technical name * [FIX]website_apps_store : add demo/product_template_demo.xml in menifest.py [FIX] website product page event not define problem [FIX]fix 403 public user error [FIX]website_apps_store: attribute value change was not changing the href for the repository. OCA#56
update products attributes and create attribute values (OCA#40) * [FIX]update the product for the new version * [FIX]max version problem and also rewrite logic so the from fronend if the version is not selected manually then the default(with less sequence) will be downloaded * [IMP]added technical name search functionality * change version number * [IMP]Merged create and update product cron job * [FIX]fix variable names Fix Bad rendering of links inside README (OCA#42) * [FIX][OCA#37]fix rendering from README * [ADD]added CONTRIBUTORS * [FIX] Sorting problem. sorted(for getting default version) as similar as it is sorted from website view [FIX]visibility for the selected options and filters improvements (OCA#43) * [FIX]visibility for the selection options and do not loss the selection option when we change filter from maturity to version etc. * [VER]Added Version number [FIX]CSS module description [FIX]website_apps_store: fix the shop pager [FIX][49] solve pager with search parameter (OCA#51) Sort by Download and rating (OCA#46) * [WIP] added initial support for Google recaptcha * [WIP]added dependencies * [IMP]Added google captcha with download functionality with reset and validation * [IMP]added download count fields and increament it when donwloaded * [ADD]added missing files * [IMP]website_apps_store: add sort by download count on website * remove console and not extra space * [VER]changed version number * [FIX]website_apps_store: fix test case error * [FIX]reset only if google recaptcha is initiated 11.0 issue OCA#50 add the module technical name in front page (OCA#52) * [FIX][49] solve pager with search parameter * [IMP]website_apps_store : add technical name in front page * [IMP]website_apps_store : add website tour to search technical name * [FIX]website_apps_store : add demo/product_template_demo.xml in menifest.py [FIX] website product page event not define problem [FIX]fix 403 public user error [FIX]website_apps_store: attribute value change was not changing the href for the repository. OCA#56
update products attributes and create attribute values (OCA#40) * [FIX]update the product for the new version * [FIX]max version problem and also rewrite logic so the from fronend if the version is not selected manually then the default(with less sequence) will be downloaded * [IMP]added technical name search functionality * change version number * [IMP]Merged create and update product cron job * [FIX]fix variable names Fix Bad rendering of links inside README (OCA#42) * [FIX][OCA#37]fix rendering from README * [ADD]added CONTRIBUTORS * [FIX] Sorting problem. sorted(for getting default version) as similar as it is sorted from website view [FIX]visibility for the selected options and filters improvements (OCA#43) * [FIX]visibility for the selection options and do not loss the selection option when we change filter from maturity to version etc. * [VER]Added Version number [FIX]CSS module description [FIX]website_apps_store: fix the shop pager [FIX][49] solve pager with search parameter (OCA#51) Sort by Download and rating (OCA#46) * [WIP] added initial support for Google recaptcha * [WIP]added dependencies * [IMP]Added google captcha with download functionality with reset and validation * [IMP]added download count fields and increament it when donwloaded * [ADD]added missing files * [IMP]website_apps_store: add sort by download count on website * remove console and not extra space * [VER]changed version number * [FIX]website_apps_store: fix test case error * [FIX]reset only if google recaptcha is initiated 11.0 issue OCA#50 add the module technical name in front page (OCA#52) * [FIX][49] solve pager with search parameter * [IMP]website_apps_store : add technical name in front page * [IMP]website_apps_store : add website tour to search technical name * [FIX]website_apps_store : add demo/product_template_demo.xml in menifest.py [FIX] website product page event not define problem [FIX]fix 403 public user error [FIX]website_apps_store: attribute value change was not changing the href for the repository. OCA#56
Added google recaptcha support for restricting Download.