Skip to content

DRAFT - add support for private github URLs#531

Draft
bvaisvil wants to merge 3 commits intodnanexus:developfrom
bvaisvil:raw_gh_url_support
Draft

DRAFT - add support for private github URLs#531
bvaisvil wants to merge 3 commits intodnanexus:developfrom
bvaisvil:raw_gh_url_support

Conversation

@bvaisvil
Copy link
Copy Markdown

I'll write up a more detailed description ASAP. This draft is meant for myriad folks to sanity check before I ask anyone from DNANexus to review.

Please note that an LLM was used in the creation of this PR.

Copy link
Copy Markdown

@Ben-Habermeyer Ben-Habermeyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks pretty good to me, though I admit my scala knowledge is limited. I provided a pointer to their dev docs and have one question about mixed imports

@@ -0,0 +1,3 @@
java temurin-11.0.21+9
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: DX may ask to revert this however I personally appreciate it


/**
* Determines if authentication should be used for the given URI.
* Only returns true if a token is configured AND the domain is in the allowed list.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

checking my understanding here, if the import belongs to one of the allowed domains AND a token is set in the env then this protocol will be used. Is this done on an import-by-import basis?

What happens if we have imports from multiple sources? e.g.

import local.wdl
import http://raw.githubusercontent.com/remote/public.wdl
import https://github.com/company/repo/private.wdl

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I'm reading this correctly, it does it per source in the resolver (above). Likely worth just trying it just to make sure but it looks like that's what it's doing.

imports,
Vector(DxFileAccessProtocol()),
logger

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants