mybb2 icon indicating copy to clipboard operation
mybb2 copied to clipboard

Feature: User Activity for #15

Open euantorano opened this issue 10 years ago • 31 comments

This pull request implements the User Activity feature for issue #15.

euantorano avatar Mar 20 '15 13:03 euantorano

Do you also plan to add activities here (posting topic/post) or will you add it separately? Also you changed the getPresenter in the Post model but not in the others.

JN-Jones avatar Mar 20 '15 14:03 JN-Jones

Yes, I plan to add support for core content types in this branch, but will open additional pull requests as other content types are created. And yes, I will change the other models. The only reason I fixed Post here is because I was editing the model anyway.

On 20 Mar 2015, at 14:43, Jones [email protected] wrote:

Do you also plan to add activities here (posting topic/post) or will you add it separately? Also you changed the getPresenter in the Post model but not in the others.

— Reply to this email directly or view it on GitHub.

euantorano avatar Mar 20 '15 15:03 euantorano

Basic user activity for replies done. Other activities can be completed in the future as they're implemented. It will also need some nicer styling @justinsoltesz - it currently looks like this:

screen shot 2015-03-29 at 11 03 33

euantorano avatar Mar 29 '15 10:03 euantorano

Totally unrelated but what is with those labels?

Pretty much everything is a new-feature/work-in-progress/feature-enhancement isn't it?

tongue

Sama34 avatar Mar 29 '15 11:03 Sama34

@Sama34 They'll be more useful in the future :) It's just good practise to get used to using them now rather than later.

euantorano avatar Mar 29 '15 11:03 euantorano

Any more feedback on this or can we merge? The basics are done, but it needs styling @justinsoltesz.

euantorano avatar Mar 31 '15 13:03 euantorano

I'll take care of styling after it's merged

justinsoltesz avatar Mar 31 '15 14:03 justinsoltesz

Alright, no problem.

euantorano avatar Mar 31 '15 14:03 euantorano

@euantorano Is this still wip or can we start testing it? (After resolving conflicts)

JN-Jones avatar Apr 03 '15 11:04 JN-Jones

Feel free to start testing :)

On 3 Apr 2015, at 12:32, Jones [email protected] wrote:

@euantorano Is this still wip or can we start testing it? (After resolving conflicts)

— Reply to this email directly or view it on GitHub.

euantorano avatar Apr 03 '15 11:04 euantorano

If there's no further feedback, I'll merge this today.

euantorano avatar Apr 07 '15 08:04 euantorano

@euantorano haha yeh I figured out that you just changed indentation, but someone should address these things ;)

wpillar avatar Apr 07 '15 10:04 wpillar

Yep, this PR isn't the place to do so though really ;) It should be done in a separate PR.

euantorano avatar Apr 07 '15 10:04 euantorano

@JN-Jones thoughts?

wpillar avatar Apr 07 '15 10:04 wpillar

We have a lot of things which don't follow our current t standards - all of them should be fixed in one go in a separate PR.

About injecting the config: feel free to do so, initially I planned to create an issue in the recaptcha library as I don't like setting config values like that.

JN-Jones avatar Apr 07 '15 11:04 JN-Jones

Are we okay to merge this? Any more feedback?

euantorano avatar Apr 09 '15 09:04 euantorano

Any more feedback? This should now be ready to go I believe.

euantorano avatar Apr 09 '15 16:04 euantorano

I'll check this now. Do we want to show likes in the activity feed too? As that PR got merged now.

JN-Jones avatar Apr 09 '15 16:04 JN-Jones

Probably, yes. I'll add that later :)

euantorano avatar Apr 09 '15 17:04 euantorano

Also there are no changes to the database/* classes: no migration for the new table and the new setting(s) aren't added.

JN-Jones avatar Apr 09 '15 17:04 JN-Jones

Odd. I'm sure I added that. I'll fix it tonight.

On 9 Apr 2015, at 18:13, Jones [email protected] wrote:

Also there are no changes to the database/* classes: no migration for the new table and the new setting(s) aren't added.

— Reply to this email directly or view it on GitHub.

euantorano avatar Apr 09 '15 18:04 euantorano

@JN-Jones The migration is already there, might have been committed in the core earlier when I started working on this outside a PR. I'll add the settings though.

euantorano avatar Apr 09 '15 18:04 euantorano

That explain why I haven't seen an SQL error though it told me that no migration was run. Will recheck later then.

JN-Jones avatar Apr 09 '15 18:04 JN-Jones

Probably ;)

From: Jones Reply-To: mybb/mybb2 Date: Thursday, 9 April 2015 19:47 To: mybb/mybb2 Cc: Euan Torano Subject: Re: [mybb2] Feature: User Activity for #15 (#19)

That explain why I haven't seen an SQL error though it told me that no migration was run. Will recheck later then.

— Reply to this email directly or view it on GitHub.

euantorano avatar Apr 09 '15 18:04 euantorano

One bug I've noticed: Starting a thread/topic shows as "Posted a reply" in the activity feed.

And some suggestions/things that can/should be added:

  • The start topic (seed) isn't added and should be imho
  • Sign Up could be saved as activity
  • As we have profiles the activities should probably be shown there too
  • A new page (user/Admin.1/activity) with the full activity feed for that user should be added

JN-Jones avatar Apr 10 '15 08:04 JN-Jones

Good suggestions, I'll sort that :)

euantorano avatar Apr 10 '15 08:04 euantorano

Another one: #80 should be considered here too.

JN-Jones avatar Apr 18 '15 16:04 JN-Jones

Yep, I'll include that here.

euantorano avatar Apr 18 '15 16:04 euantorano

File header should be updated here too ;)

JN-Jones avatar May 10 '15 08:05 JN-Jones

TODO:

  • [x] New sub-page to profile to view all activity for a user

euantorano avatar May 19 '15 09:05 euantorano