-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Implement support to preview unsupported patches #11793
Conversation
Codecov Report
@@ Coverage Diff @@
## master #11793 +/- ##
=======================================
Coverage 47.68% 47.69%
=======================================
Files 1402 1402
Lines 79772 79790 +18
Branches 6732 6734 +2
=======================================
+ Hits 38041 38057 +16
- Misses 38155 38156 +1
- Partials 3576 3577 +1
|
The ticket (https://github.com/sourcegraph/sourcegraph/issues/11193) says:
So, the question is: instead of silently dropping this, what options do we have? |
This is fixed IMO: And once they hit the backend API, we will never discard them anymore, but keep them and display them as in the screenshot above, being publishable: false`. I think the ticket mentioned us dropping it silently on the backend, which we now don't do anymore. |
And that's also displayed when there were repositories found and not only in
Both. From an end user's perspective you can't tell where it's dropped. |
I think making it visible in non-verbose mode is good. I'm not sure yet about listing the repository names (because the list can grow quite long), but I think this is better than just a sentence. The text itself contains a lot of redundancy: "(Including 1 on unsupported code hosts.)" should not be necessary if we print "The following repositories were filted out because [...]". But we can take a look at that in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good, but I think this can be simplified a lot in the backend. See my other comments.
Codecov Report
@@ Coverage Diff @@
## master #11793 +/- ##
=======================================
Coverage 47.68% 47.69%
=======================================
Files 1402 1402
Lines 79772 79787 +15
Branches 6732 6776 +44
=======================================
+ Hits 38041 38056 +15
Misses 38155 38155
Partials 3576 3576
|
|
Related PR on src CLI: sourcegraph/src-cli#236 |


Closes #11193
Tasks from issue:
IsRepoSupportedchecks so that patches from unsupported repositories are accepted, but not published (checks need to be moved to theServiceand possibly theExecChangesetJobsfunction)publishChangesetmutation we should return an errorpublishCampaignChangesetsmutation we should skip themPublishable: booleanproperty toPatchin the GraphQL APIsrc-cliFor the last task: Do we really need to? We currently have a flag to allow creating patches for unsupported codehosts, which helps here. Removing it would mean we default to that behavior and I think that more customers would want to omit them than would want to store them for future use by default.