PolicyEngine / policyengine-app

PolicyEngine's free web app for computing the impact of public policy.
GNU Affero General Public License v3.0
35 stars 90 forks source link

Filtering for author #1750

Open psankhe28 opened 1 month ago

psankhe28 commented 1 month ago

Description

Fixes #1726

Changes

I have fixed the filtering of the author

Tests

17/17 tests passed

anth-volk commented 1 month ago

Hard to believe that the change could be this simple. I haven't tested yet, but before I do, you have a commit in this that's part of a different issue (#1749). I'm guessing you opened this feature branch (filter) off of that branch (app-css) instead of off master. That's not a problem at all, could you just drop that commit and re-push? Otherwise, this seems like a simple review.

anth-volk commented 1 month ago

Also, could you add "Fixes " in front of the issue number? Thanks again.

psankhe28 commented 1 month ago

Yes, I will do it.

psankhe28 commented 1 month ago

Hi @psankhe28, thanks for your contribution here. Unfortunately, this still doesn't fix the problem. For example, go to http://localhost:3000/us/research, and on the left-hand side, under "Author", click "Max Ghenis". You'll notice that the first article, "PolicyEngine launches state income tax...", was written by Pavel Makarchuk. We're looking for all displayed articles to be by Max Ghenis.

It is possible that the root of the problem is more comprehensive than just something small. This may require some digging to determine the root of.

I may have missed something, I will look into it. Sorry!

anth-volk commented 1 month ago

That's alright @psankhe28! Appreciate the contribution.

anth-volk commented 2 weeks ago

Hi @psankhe28, sorry for the delay in getting back to you on this, I just had to do some thinking as to how to actually get this working.

I think this needs a more comprehensive overhaul, unfortunately. I was looking at the original code, and it is just very broken. Here's the technical setup I'm thinking:

This is quite a bit in the way of changes. If you'd like to take this on, we'd be happy to have your contribution. Alternatively, if you'd like something simpler, we can close this out and I can take it on later. Apologies for this being tougher than expected, we just didn't know how broken the existing filters were.