Rewrites/type-hints App and array #600

Closed
Quix0r wants to merge 29 commits from rewrites/type-hints-app into develop
Quix0r commented 2018-05-10 15:29:44 +02:00 (Migrated from github.com)

Added type-hints for safer code also &$a is being replaced.

Added type-hints for safer code also `&$a` is being replaced.
Quix0r commented 2018-05-10 15:37:07 +02:00 (Migrated from github.com)

Uncaught TypeError: Argument 2 passed to buglink_active() must be of the type array, string given - ops, need to fix those. :-(

`Uncaught TypeError: Argument 2 passed to buglink_active() must be of the type array, string given` - ops, need to fix those. :-(
annando commented 2018-05-10 22:09:10 +02:00 (Migrated from github.com)

Since we are now in the RC phase, I suggest that we merge this after the RC changes are merged back into the RC.

Since we are now in the RC phase, I suggest that we merge this after the RC changes are merged back into the RC.
MrPetovan (Migrated from github.com) requested changes 2018-05-10 22:25:41 +02:00
annando (Migrated from github.com) reviewed 2018-05-10 22:34:19 +02:00
MrPetovan (Migrated from github.com) reviewed 2018-05-10 22:37:29 +02:00
annando (Migrated from github.com) reviewed 2018-05-10 22:41:16 +02:00
MrPetovan (Migrated from github.com) reviewed 2018-05-10 22:42:29 +02:00
annando (Migrated from github.com) reviewed 2018-05-10 22:43:29 +02:00
Quix0r (Migrated from github.com) reviewed 2018-05-10 22:54:13 +02:00
Quix0r (Migrated from github.com) reviewed 2018-05-10 22:58:09 +02:00
Quix0r (Migrated from github.com) reviewed 2018-05-10 22:58:56 +02:00
Quix0r (Migrated from github.com) reviewed 2018-05-10 22:59:58 +02:00
Quix0r (Migrated from github.com) reviewed 2018-05-10 23:01:50 +02:00
annando (Migrated from github.com) reviewed 2018-05-10 23:09:46 +02:00
Quix0r (Migrated from github.com) reviewed 2018-05-10 23:09:56 +02:00
Quix0r (Migrated from github.com) left a comment

Please check my comments.

Please check my comments.
Quix0r (Migrated from github.com) reviewed 2018-05-10 23:10:44 +02:00
annando (Migrated from github.com) reviewed 2018-05-10 23:18:07 +02:00
annando (Migrated from github.com) reviewed 2018-05-10 23:20:08 +02:00
annando commented 2018-05-10 23:27:51 +02:00 (Migrated from github.com)

Concerning your PR: I really, really would prefer having a PR per addon - and then we could really work through the addons to make them perfect. So we are having many addons in a single PR and they only cover some stuff - but not all. And while reviewing them I already know that I won't question any formatting or style issue (but only in function issues), since this would lead in endlessly repeating review processes. And of course you have to expect to solve many merge conflicts, since work at the addons will continue from other sides.

And since reviewing 60+ files will take some time, expect me to do this maybe once a week. Currently I have to focus on implementing stuff. There is so much work to do especially with the item storage.

Concerning your PR: I really, really would prefer having a PR per addon - and then we could really work through the addons to make them perfect. So we are having many addons in a single PR and they only cover some stuff - but not all. And while reviewing them I already know that I won't question any formatting or style issue (but only in function issues), since this would lead in endlessly repeating review processes. And of course you have to expect to solve many merge conflicts, since work at the addons will continue from other sides. And since reviewing 60+ files will take some time, expect me to do this maybe once a week. Currently I have to focus on implementing stuff. There is so much work to do especially with the item storage.
Quix0r (Migrated from github.com) reviewed 2018-05-10 23:32:58 +02:00
Quix0r (Migrated from github.com) reviewed 2018-05-10 23:34:03 +02:00
MrPetovan (Migrated from github.com) reviewed 2018-05-10 23:34:29 +02:00
Quix0r (Migrated from github.com) reviewed 2018-05-10 23:34:51 +02:00
Quix0r commented 2018-05-10 23:35:48 +02:00 (Migrated from github.com)

Okay, next time more PRs than just a complete overhaul.

Okay, next time more PRs than just a complete overhaul.
annando (Migrated from github.com) reviewed 2018-05-10 23:35:50 +02:00
Quix0r (Migrated from github.com) reviewed 2018-05-10 23:36:35 +02:00
Quix0r (Migrated from github.com) reviewed 2018-05-10 23:45:22 +02:00
MrPetovan (Migrated from github.com) reviewed 2018-05-11 01:25:12 +02:00
Quix0r (Migrated from github.com) reviewed 2018-05-11 01:33:06 +02:00
MrPetovan (Migrated from github.com) requested changes 2018-05-11 02:28:51 +02:00
Quix0r (Migrated from github.com) reviewed 2018-05-11 09:57:57 +02:00
Quix0r (Migrated from github.com) reviewed 2018-05-11 09:58:07 +02:00
Quix0r (Migrated from github.com) reviewed 2018-05-11 09:58:49 +02:00
Quix0r (Migrated from github.com) reviewed 2018-05-11 10:00:02 +02:00
Quix0r (Migrated from github.com) reviewed 2018-05-11 10:00:19 +02:00
MrPetovan (Migrated from github.com) reviewed 2018-05-11 13:46:31 +02:00
MrPetovan (Migrated from github.com) requested changes 2018-05-13 05:09:05 +02:00
annando (Migrated from github.com) reviewed 2018-05-13 07:47:13 +02:00
Quix0r (Migrated from github.com) reviewed 2018-05-13 14:25:57 +02:00
Quix0r (Migrated from github.com) reviewed 2018-05-13 14:27:30 +02:00
Quix0r (Migrated from github.com) reviewed 2018-05-13 14:36:07 +02:00
Quix0r commented 2018-05-13 14:39:49 +02:00 (Migrated from github.com)

Pushed an update.

Pushed an update.
MrPetovan (Migrated from github.com) requested changes 2018-05-13 15:54:45 +02:00
MrPetovan (Migrated from github.com) left a comment

Please stop adding anything to this PR, it's large enough already. Can you revert your last commit and just care about the reviews? ijpost is the perfect example of file that should be completely cared for separately, including fixing the indentation.

Please stop adding anything to this PR, it's large enough already. Can you revert your last commit and just care about the reviews? ijpost is the perfect example of file that should be completely cared for separately, including fixing the indentation.
Quix0r commented 2018-05-13 23:11:11 +02:00 (Migrated from github.com)

Oh, sorry. Okay.

Oh, sorry. Okay.
Quix0r (Migrated from github.com) reviewed 2018-05-13 23:14:37 +02:00
Quix0r (Migrated from github.com) reviewed 2018-05-13 23:31:49 +02:00
Quix0r (Migrated from github.com) reviewed 2018-05-13 23:33:43 +02:00
Quix0r commented 2018-05-13 23:38:46 +02:00 (Migrated from github.com)

Have undone some parts and single-committed almost each file.

Have undone some parts and single-committed almost each file.
MrPetovan commented 2018-05-14 00:39:40 +02:00 (Migrated from github.com)

If you're writing 20 commits per PR, can you please distinguish themselves from each other? You can write the specific fix you're doing, and/or the specific file/method you're changing.

If you're writing 20 commits per PR, can you please distinguish themselves from each other? You can write the specific fix you're doing, and/or the specific file/method you're changing.
MrPetovan (Migrated from github.com) requested changes 2018-05-14 00:56:28 +02:00
MrPetovan commented 2018-05-14 00:58:05 +02:00 (Migrated from github.com)

Please, please, please, either stick to a single change over multiple files, or multiple changes in a few files. This PR does both and it was a hassle to review, especially since not all the changes were consistent, which means I had to be really careful over an extended period of time.

Please, please, please, either stick to a single change over multiple files, or multiple changes in a few files. This PR does both and it was a hassle to review, especially since not all the changes were consistent, which means I had to be really careful over an extended period of time.
Quix0r (Migrated from github.com) reviewed 2018-05-14 21:45:34 +02:00
Quix0r (Migrated from github.com) reviewed 2018-05-14 21:48:34 +02:00
Quix0r commented 2018-05-14 21:59:00 +02:00 (Migrated from github.com)

Okay, should we then better close this and I do the "magic" of splitting it up?

Okay, should we then better close this and I do the "magic" of splitting it up?
Quix0r (Migrated from github.com) reviewed 2018-05-14 22:05:32 +02:00
Quix0r (Migrated from github.com) reviewed 2018-05-14 22:05:53 +02:00
Quix0r commented 2018-05-14 22:09:27 +02:00 (Migrated from github.com)

Well, I'm mostly commit quickly. Maybe I can add [addon-name] in first line of each commit and create PRs per addon as requested?

Well, I'm mostly commit quickly. Maybe I can add `[addon-name]` in first line of each commit and create PRs per addon as requested?
MrPetovan (Migrated from github.com) reviewed 2018-05-14 22:09:55 +02:00
Quix0r (Migrated from github.com) reviewed 2018-05-14 22:10:07 +02:00
MrPetovan commented 2018-05-14 22:10:39 +02:00 (Migrated from github.com)

Yes, please. The review should be much quicker for each addon than it is for the whole here.

Yes, please. The review should be much quicker for each addon than it is for the whole here.
MrPetovan (Migrated from github.com) reviewed 2018-05-14 22:11:48 +02:00
MrPetovan (Migrated from github.com) reviewed 2018-05-14 22:12:03 +02:00
MrPetovan (Migrated from github.com) reviewed 2018-05-14 22:13:10 +02:00
MrPetovan (Migrated from github.com) reviewed 2018-05-14 22:14:11 +02:00
MrPetovan (Migrated from github.com) approved these changes 2018-06-28 15:30:39 +02:00
MrPetovan commented 2018-06-28 15:31:02 +02:00 (Migrated from github.com)

This PR has conflicts with de develop branch.

This PR has conflicts with de `develop` branch.
Quix0r commented 2018-06-29 10:28:33 +02:00 (Migrated from github.com)

I should then fix this, maybe this weekend.

I should then fix this, maybe this weekend.
Quix0r commented 2018-07-03 17:43:54 +02:00 (Migrated from github.com)

Ga, oversaw it. I notify myself @Quix0r ...

Ga, oversaw it. I notify myself @Quix0r ...
Quix0r commented 2018-07-03 23:53:43 +02:00 (Migrated from github.com)

Okay, done. And yes, I rebased. ;-)

Okay, done. And yes, I rebased. ;-)
Quix0r commented 2018-07-03 23:58:49 +02:00 (Migrated from github.com)

~Parser errors!~ Fixed.

~Parser errors!~ Fixed.
MrPetovan (Migrated from github.com) requested changes 2018-07-04 01:49:43 +02:00
MrPetovan (Migrated from github.com) left a comment

Once more you did a little too much more than what the PR advertises. It's okay, I'm doing the same, but please stick to a single change by PR next time. Either type-hints or missing braces or missing spaces for example.

Additionally, you broke half a dozen addons by changing hook function prototypes.

Once more you did a little too much more than what the PR advertises. It's okay, I'm doing the same, but please stick to a single change by PR next time. Either type-hints or missing braces or missing spaces for example. Additionally, you broke half a dozen addons by changing hook function prototypes.
Quix0r (Migrated from github.com) reviewed 2018-07-06 22:09:43 +02:00
Quix0r (Migrated from github.com) reviewed 2018-07-06 22:36:00 +02:00
MrPetovan (Migrated from github.com) reviewed 2018-07-06 22:39:06 +02:00
Quix0r (Migrated from github.com) reviewed 2018-07-06 22:42:58 +02:00
MrPetovan (Migrated from github.com) reviewed 2018-07-06 22:46:56 +02:00
Quix0r commented 2018-07-06 22:51:42 +02:00 (Migrated from github.com)

Okay, so far finished all. Do you may have an example for a broken one?

Okay, so far finished all. Do you may have an example for a broken one?
MrPetovan commented 2018-07-06 23:04:04 +02:00 (Migrated from github.com)

Every time you removed the & from a hook function parameter. I mentioned them all in my review above.

Every time you removed the `&` from a hook function parameter. I mentioned them all in my review above.
Quix0r commented 2018-07-06 23:21:05 +02:00 (Migrated from github.com)

Ah, okay. Let's finish this. And then I start making new PRs for each addon individually:>

  • x() is deprecated? Then ~remove~ replace with isset()/empty() (rules here?)
  • add missing curly braces, where should they be placed at start of new line/end of current line?
  • add spaces properly
  • add type-hints and make sure they fit (e.g. App or array)
  • others?
Ah, okay. Let's finish this. And then I start making new PRs for each addon individually:> - `x()` is deprecated? Then ~remove~ replace with `isset()/empty()` (rules here?) - add missing curly braces, where should they be placed at start of new line/end of current line? - add spaces properly - add type-hints and make sure they fit (e.g. `App` or `array`) - others?
MrPetovan commented 2018-07-07 03:27:28 +02:00 (Migrated from github.com)

That's a good list already!

That's a good list already!
MrPetovan (Migrated from github.com) requested changes 2018-07-07 03:30:12 +02:00
Quix0r (Migrated from github.com) reviewed 2018-07-08 00:09:33 +02:00
MrPetovan (Migrated from github.com) reviewed 2018-07-08 01:56:31 +02:00
Quix0r (Migrated from github.com) reviewed 2018-07-08 07:21:12 +02:00
MrPetovan (Migrated from github.com) reviewed 2018-07-08 07:51:49 +02:00
Quix0r (Migrated from github.com) reviewed 2018-07-08 09:21:36 +02:00
MrPetovan commented 2018-07-08 09:55:10 +02:00 (Migrated from github.com)

Thanks for agreeing with my demanding terms! Are you going to submit a patch against friendica to fix the include/conversation bug? We can't merge this until it's fixed.

Thanks for agreeing with my demanding terms! Are you going to submit a patch against friendica to fix the include/conversation bug? We can't merge this until it's fixed.
Quix0r commented 2018-07-08 11:16:00 +02:00 (Migrated from github.com)

Which hook do I have to look in? Edit: display_item. ;-)

Which hook do I have to look in? Edit: `display_item`. ;-)
Quix0r commented 2018-07-08 11:20:13 +02:00 (Migrated from github.com)

callSingleHook also accepts null for $data and no type-hint there. I think I open another issue over there. ;-)

`callSingleHook` also accepts `null` for `$data` and no type-hint there. I think I open another issue over there. ;-)
annando (Migrated from github.com) reviewed 2018-07-08 14:02:47 +02:00
MrPetovan commented 2018-07-08 15:06:59 +02:00 (Migrated from github.com)
Blocked by https://github.com/friendica/friendica/issues/5335
Quix0r commented 2018-07-10 20:40:04 +02:00 (Migrated from github.com)

Okay, conflict fixed.

Okay, conflict fixed.
MrPetovan commented 2018-07-20 22:07:11 +02:00 (Migrated from github.com)

New day, new conflicts.

New day, new conflicts.
Quix0r commented 2018-07-20 22:51:57 +02:00 (Migrated from github.com)

Yay!

Yay!
Quix0r commented 2018-07-20 22:59:57 +02:00 (Migrated from github.com)

rebase did its job again, messing with microsuck-hub around ... :-( I think I better close this one and re-do it on a per-addon basis as requested by @MrPetovan

`rebase` did its job again, messing with microsuck-hub around ... :-( I think I better close this one and re-do it on a per-addon basis as requested by @MrPetovan

Pull request closed

Sign in to join this conversation.
No description provided.