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

Sort by group size (Mentioned in #306). Popular groups sortBy -size #335

Merged
merged 1 commit into from
Sep 2, 2014

Conversation

Zren
Copy link
Contributor

@Zren Zren commented Aug 28, 2014

Will lazily update over 2h after pushing.
Linkifies Popular Group heading. Depends on #332 for CSS.

Edit:
Need to merge #332 beforehand, but otherwise this is PR READY.
I changed the sort order for popular groups to be by size rather than rating.

…By -size

Will lazily update over 2h after pushing.
Linkifies Popular Group heading. Depends on OpenUserJS#332 for CSS.
@Zren Zren added DB labels Aug 28, 2014
@Martii Martii added the bug label Aug 28, 2014
@Martii Martii added this to the #262 milestone Aug 28, 2014
@Martii
Copy link
Member

Martii commented Aug 28, 2014

Ascending/descending doesn't appear to be linked in... EDIT: this definitely needs to be implemented though.

@Zren
Copy link
Contributor Author

Zren commented Aug 28, 2014

Will lazily update over 2h after pushing.

It's currently populating Group.size when it's updates Group.rating every 2 hours. We could easily populate all groups but that requires access to the db... I could create a route to force updating all groups I guess.

@jerone
Copy link
Contributor

jerone commented Aug 28, 2014

@Martii commented on 28 aug. 2014 05:44 CEST:

Ascending/descending doesn't appear to be linked in...

@Zren Have a look at this PR how to include ascending/descending ordering.


Link to #306

@Zren
Copy link
Contributor Author

Zren commented Aug 28, 2014

I had already implemented it @jerone

https://github.com/OpenUserJs/OpenUserJS.org/pull/335/files#diff-e731f3e65d80f95c77cf8955531667f6R171
https://github.com/OpenUserJs/OpenUserJS.org/pull/335/files#diff-4b27d4f43db2b6441180d239ad31fb1cR5

It's just that the we aren't migrating all at once like normal. Know what. We need a new issue to deal with this.

@Martii
Copy link
Member

Martii commented Aug 28, 2014

It's just that the we aren't migrating all at once like normal.

What do you mean by this? (#337 referenced). The PR READY label has to be done... you didn't tag the remaining yesterday so they aren't merged and especially the needs discussion label that was there on a few means it's not ready. e.g. blocking by you as the assignee... Did I miss your point here?

@Zren Zren added the PR READY label Sep 1, 2014
@Martii Martii removed the PR READY label Sep 2, 2014
@Martii
Copy link
Member

Martii commented Sep 2, 2014

This PR appears to have a CSS/HTML artifact for "Popular Groups" that isn't present on current deployed HEAD at 8f951b1. Unmarking as PR READY. Remark when PR READY. Thanks.

click to enlarge

@Martii
Copy link
Member

Martii commented Sep 2, 2014

This PR also appears to break #332.


@jerone

Re:

I had already implemented it @jerone

It would appear that Zren is forcing commits into the project. When I test his individual commits this is when breakage occurs. This latest one appears to be reliant, and undocumented, upon #333 in order to work. This is a bad habit to get into especially since neither issue topic should be related. I do understand that some PRs have the need for dependencies... but a forced feature is not a good thing especially when undocumented.

Unmarked PR READY on both of these until they can be isolated for testing. Hope that clears up some confusion as to the earlier report I did and you responded to.

@jerone
Copy link
Contributor

jerone commented Sep 2, 2014

@Zren commented on 28 aug. 2014 22:26 CEST:

I had already implemented it @jerone

@Martii commented on 2 sep. 2014 09:36 CEST:

It would appear that Zren is ... Hope that clears up some confusion as to the earlier report I did and you responded to.

It appears this has been correctly implemented by @Zren. I was confused by the new link in the views/includes/popularGroupsPanel.html, but this just opens the page with the correct sorting. No need to put the reverse ordering logic (#309) in there, I guess.

@Zren
Copy link
Contributor Author

Zren commented Sep 2, 2014

undocumented

...

I changed the sort order for popular groups to be by size rather than rating.

I assume we're keeping the default sort order on the group page, which is why we change it here.


CSS/HTML artifact for "Popular Groups" that isn't present on current deployed HEAD at 8f951b1

In other words, you're not actually using the latest head for testing? Did you test with after doing a git pull upstream master? Cuz it's there.

https://github.com/OpenUserJs/OpenUserJS.org/blob/8f951b152460edefdc44b289b2694984ca176c4f/public/css/common.css#L278

@Martii
Copy link
Member

Martii commented Sep 2, 2014

In other words, you're not actually using the latest head for testing?

In GitHubs words the latest HEAD is 8f951b1 at the top summary commit. I always pull from upstream master... specifically I fetch from remote upstream, merge upstream/master if available into my master, then checkout your pr which will be updated or not depending on what your pr head is at.

@Martii
Copy link
Member

Martii commented Sep 2, 2014

Sometimes I will also build a testing branch of all the available commits exactly in order which is what I did to find what didn't appear to be a boog. I'll recheck merging master into the pr.

@Martii
Copy link
Member

Martii commented Sep 2, 2014

Rechecked and yes the current HEAD wasn't in the pr checkout. This was the first time I've done it (#334) out of order and it (remerging master into the pr) does negate the appearance of a boog. Anyhow... going back to linear merging, to avoid this procedure in the future, I would like to see #333 cleared up so we can do this one.

@Zren Zren added the PR READY label Sep 2, 2014
Martii added a commit that referenced this pull request Sep 2, 2014
Sort by group size (Mentioned in #306). Popular groups sortBy -size
@Martii Martii merged commit 8c3fb36 into OpenUserJS:master Sep 2, 2014
@Martii
Copy link
Member

Martii commented Sep 2, 2014

@Zren
Thanks for your patience. :)

@Martii Martii removed the PR READY label Sep 2, 2014
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug You've guessed it... this means a bug is reported. DB Pertains inclusively to the Database operations. UI Pertains inclusively to the User Interface.
Development

Successfully merging this pull request may close these issues.

3 participants