We have made the notifications for group join/promotion approvals have some degree of explanation if some other staff member already did an approval, but other approvals in Composr don't do this and should.
So...
This kind of code is in various CMS hooks, activated by links from needs_validation notifi…
Suggested by Chris Graham on 13th September 2022
» Full details and sponsorship (0 comments)
Currently the XML database driver does not support expressions involving aggregate functions.
Consider this query we were considering doing...
SELECT recipient_id,SUM(amount_points)+SUM(gift_points)-(SELECT SUM(amount_points)+SUM(gift_points) FROM cms11_points_ledger refund WHERE refund.status='refun…
Suggested by Chris Graham on 17th September 2022
» Full details and sponsorship (0 comments)
We do not currently have any support for database cursors. A query will return as many results as we ask for in one go, and then we're done with it.
Consider this query we were considering doing...
SELECT recipient_id,SUM(amount_points)+SUM(gift_points)-(SELECT SUM(amount_points)+SUM(gift_points) FRO…
Suggested by Chris Graham on 17th September 2022
» Full details and sponsorship (0 comments)
If viewing a single point ledger transaction in the adminzone, and the transaction has t_type and t_type_id which points to a valid content, link to the content in a new field.
Suggested by Patrick Schmalstig on 25th September 2022
» Full details and sponsorship (0 comments)
points_ledger contains t_type and t_type_id which will often map to a piece of content. When merging, we need to make sure t_type_id is mapped to the correct new ID when applicable. Currently it is just left blank.
Suggested by Patrick Schmalstig on 25th September 2022
» Full details and sponsorship (0 comments)
PHP says "bool" and "int", while all our API documentation uses "boolean" and "integer".
Switch to the former (the abbreviations).
Suggested by Chris Graham on 26th September 2022
» Full details and sponsorship (0 comments)
Maybe we should have some representation for these policies in Composr, via configuration.
Or, maybe it should just be up to the user to set in .htaccess.
Ideally I think it would be configured, as we are supposed to not require hand editing .htaccess once a site is running.
Update tut_webapp to r…
Suggested by Chris Graham on 27th September 2022
» Full details and sponsorship (0 comments)
There is a W3C spec implemented in Chrome (and behind a flag in Firefox), for allowing a site to specify the browser cache should be flushed out.
https://w3c.github.io/webappsec-clear-site-data/
Add a cleanup tool to the Admin Zone that does this for the current user. Just a nice way for an admin to…
Suggested by Chris Graham on 27th September 2022
» Full details and sponsorship (0 comments)
W3C has made a spec for specifying a known URL to change a user's password.
It is designed to make it easier to do mass-password-changes after a user finds they are breached.
https://w3c.github.io/webappsec-change-password-url/
Implement this as a simple redirect in recommended.htaccess.
Update t…
Suggested by Chris Graham on 27th September 2022
» Full details and sponsorship (0 comments)
W3C are working on a spec to allow nesting:
https://drafts.csswg.org/css-nesting/
It would make our CSS more readable. It's a problem how complex and convoluted CSS has become, and this helps solve that.
At the time of writing no browsers support it.
Consider switching our CSS to use it once poss…
Suggested by Chris Graham on 27th September 2022
» Full details and sponsorship (2 comments)