-
Notifications
You must be signed in to change notification settings - Fork 685
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
Consolidate logic for searching sources and provide pagination framework #6764
base: develop
Are you sure you want to change the base?
Consolidate logic for searching sources and provide pagination framework #6764
Conversation
It's exciting to see this draft, @nabla-c0d3. Thanks for working on it, and please let me know if there's anything you'd like to discuss along the way. |
@cfm Thank you! Nothing special to discuss so far. I will eventually get back to this and finish 👍 |
752f589
to
c714e25
Compare
@cfm Would you be able to "authorize" builds on CircleCI ? It says I'm "Unauthorized": https://app.circleci.com/pipelines/github/freedomofpress/securedrop?branch=pull%2F6764 |
That's puzzling, @nabla-c0d3, since recent commits from other contributors have run through CI just fine without special action on our part. We did have to rotate all our CircleCI‒GitHub credentials early in the new year. Could you do the same, via item (6) in https://support.circleci.com/hc/en-us/articles/360050273651-Builds-Unauthorized-due-to-contexts? I'll keep an eye out here. |
1c5ad91
to
7de2bc8
Compare
@cfm I've gone through step 6 but the problem is still there. I've sent an email to CircleCI Support; hopefully they can find what's wrong. |
@cfm CircleCI support came back to me with the following explanation:
So it looks like this context is the cause of the problem? |
Thanks for troubleshooting this, @nabla-c0d3. CI should pass on your branch, without failing Slack notifications, once you rebase from |
7de2bc8
to
12b6e6d
Compare
@cfm I rebased my branch just now, but still seeing the same "Unauthorized" error on CIrcleCI: https://app.circleci.com/pipelines/github/freedomofpress/securedrop/5672 Based on the response from support tho, it seems like just using contexts will cause CI to not be run for members that are outside of the organization? |
On Thu, Apr 13, 2023 at 01:58:31PM -0700, Alban Diquet wrote:
Based on the response from support tho, it seems like just using
contexts will cause CI to not be run for members that are outside of
the organization?
That would make sense, but after my fix in #6776 CI resumed on #6745
from outside @freedomofpress. I thought it might have to do with the
timeline of how these pull requests were interleaved, but no: both this
pull request and #6745 were opened before the context was introduced
(merged) in #6739.
I was able to kick your CI off here in
<https://app.circleci.com/pipelines/github/freedomofpress/securedrop/5672/workflows/8432eaa0-2717-4c75-9676-e105c037f3db>,
and maybe it will work again on your next push....
|
@cfm Unfortunately I just pushed and it is still happening (https://app.circleci.com/pipelines/github/freedomofpress/securedrop?branch=pull%2F6764)... |
I wonder if this has to do with the fact that I have a CircleCI account attached to my GH account? |
@cfm I had to enable CircleCI in my fork, but now it looks like everything's working 👍. I'm pretty sure the issue has to do with contributors who also have a CircleCI account. |
93372fe
to
57b7389
Compare
On Sat, Apr 22, 2023 at 07:37:02AM -0700, Alban Diquet wrote:
@cfm I had to enable CircleCI in my fork, but now it looks like
everything's working 👍. I'm pretty sure the issue has to do with
contributors who also have a CircleCI account.
That makes sense. We've recently begun porting our CI configurations
from CircleCI to GitHub Actions, so this edge-case shouldn't be around
for much longer. Thanks for solving it in your case!
I should be able to get back to you with a review ETA next week.
|
@nabla-c0d3, I apologize for our (very) slow response to this work. Based on our new roadmap for the rest of 2023 into 2024, we propose to slate this for SecureDrop 2.8. That would mean review later this year for release in the first quarter of 2024. Our work to switch to Sequoia in v2.7 has already introduced some conflicts with your changes here. Those files should be stable enough as of the v2.7 release for you to resolve these conflicts once prior to review. Let me know what you think! And thank you for your patience. If you'd like to chat with us at any point, we recently reopened our daily stand-up (https://github.com/freedomofpress/securedrop/wiki/Standup-Notes). |
@cfm seems fine to me and worries ! |
Status
Ready for review.
Description of Changes
This PR does the following:
Source
s #6667SearchSourcesAction
.g.source
as it was barely used anymore, to help with Reduce or eliminate the use of flask.g thread locals #6203.SourceFactory
to consolidate how to create a source in the unit tests.