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

Work on Site components #12261

Closed
wants to merge 19 commits into from
Closed

Work on Site components #12261

wants to merge 19 commits into from

Conversation

frankmayer
Copy link
Contributor

Another big batch:
Cleanups, fixes and a bit of optimizations for site/components

The details are in the commit messages.
Please also check my // Todo: ... on the proposal for HEREDOC with SQL queries

$quotedKeyword = $db->quote($keyword);
$prefixCondition = ($prefix === substr($keyword, 0, strlen($prefix)) ? '1' : '0');

$condition1 = /** @lang SQL */
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, that's why I wrote the comment below those lines.
What I did in this part, was to just refactor concatenated strings (without the query builder) into HEREDOC strings.
As I noted in those comments, it will not make any sense, if the query builder is used instead and all queries will be migrated to that methodology.

Copy link
Contributor

Choose a reason for hiding this comment

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

one relevant information

decide whether or not we are going to enforce the use of quoteName() and quote() in database queries. (Roland)

The PLT has decided that it will enforce the use of quoteName() and quote() methods on any new pull requests involving database queries. This to have consistent database queries that will work best across SQL platforms and with maximum security over time.

See https://volunteers.joomla.org/leadership/production-leadership-team/reports/296-plt-meeting-july-26-2016

@wilsonge
Copy link
Contributor

wilsonge commented Oct 3, 2016

Hey I'm going to be a pain! I'm afraid this really is too much for me to go through in one go (i can just about manage the other ones). Can you open these on a component by component basis please so I have a chance at being able to review them! Thanks!

@wilsonge wilsonge closed this Oct 3, 2016
@frankmayer
Copy link
Contributor Author

No issues, will have a shot at that later.

@wilsonge
Copy link
Contributor

wilsonge commented Oct 3, 2016

Thankyou!

@frankmayer
Copy link
Contributor Author

@wilsonge Is it OK to bundle a few smaller changes in 1-3 components or do you want PR's really by single component?

@wilsonge
Copy link
Contributor

wilsonge commented Oct 3, 2016

It's ok :)

rdeutz pushed a commit that referenced this pull request Oct 18, 2016
… (#12291)

* Cleanups, fixes and a bit of optimizations for site/components batch #2

- com_contact

Note: This is a single commit bundling all types of changes, since PR #12261 which had detailed commits, was rejected as a whole

* oops ;)
wilsonge pushed a commit that referenced this pull request Dec 18, 2016
… (#12292)

* Cleanups, fixes and a bit of optimizations for site/components batch #3

- com_content

Note: This is a single commit bundling all types of changes, since PR #12261 which had detailed commits, was rejected as a whole

* Ch-Ch-Ch-Changes!

Made some changes as pointed out by @andrepereiradasilva

* A bit more...

* Revert

* Removed empty function, as there is a fallback. Change made according to comment from @wilsonge

* Included @andrepereiradasilva's suggestions

* Inserting whitespace before php closing tag
wilsonge pushed a commit that referenced this pull request Dec 18, 2016
… (#12290)

* Cleanups, fixes and a bit of optimizations for site/components batch #1

- com_ajax
- com_banners
- com_config
Note: This is a single commit bundling all types of changes, since PR #12261 which had detailed commits, was rejected as a whole

* Ch-Ch-Changes!

* Removed the query changes

* Fix for wrong merge resolve
rdeutz pushed a commit that referenced this pull request Jun 8, 2017
… (#12293)

* Cleanups, fixes and a bit of optimizations for site/components batch #4

- com_mailto
- com_newsfeeds
- com_search

Note: This is a single commit bundling all types of changes, since PR #12261 which had detailed commits, was rejected as a whole

* Missed to convert `and` and `or`

* Some more fixes after conflict resolution

* - Changed some things according to reviewer's suggestions
- Some more changes in updated stuff

* Reversed a change according to reviewer's correct comment.
rdeutz pushed a commit that referenced this pull request Jun 8, 2017
… (#12294)

* Cleanups, fixes and a bit of optimizations for site/components batch #5

- com_tags
- com_users
- com_wrapper

Note: This is a single commit bundling all types of changes, since PR #12261 which had detailed commits, was rejected as a whole

* Some more fixes after conflict resolution

* - Changed some things according to reviewer's suggestions
- Some more changes in updated stuff
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.

4 participants