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

[IA-4336] Add environments metadata file types to welder #4401

Draft
wants to merge 10 commits into
base: dev
Choose a base branch
from
1 change: 0 additions & 1 deletion src/analysis/AnalysisLauncher.js
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,6 @@ const AnalysisEditorFrame = ({ styles, mode, analysisName, toolLabel, workspace,

useOnMount(() => {
const cloudStorageDirectory = `gs://${bucketName}/notebooks`;

const setUpAnalysis = _.flow(
Utils.withBusyState(setBusy),
withErrorReporting('Error setting up analysis')
Expand Down
7 changes: 4 additions & 3 deletions src/analysis/utils/tool-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,10 @@ export const toolExtensionDisplay: Partial<Record<ToolLabel, ExtensionDisplay[]>
};
export const getPatternFromRuntimeTool = (toolLabel: RuntimeToolLabel): string => {
const patterns: Record<RuntimeToolLabel, string> = {
[runtimeToolLabels.RStudio]: '.+(\\.R|\\.Rmd)$',
[runtimeToolLabels.Jupyter]: '.*\\.ipynb',
[runtimeToolLabels.JupyterLab]: '.*\\.ipynb',
// Adding suffixes to conda, pip, and poetry environments (only conda supports R)
[runtimeToolLabels.RStudio]: '.+(\\.R|\\.Rmd|\\.yml)$',
[runtimeToolLabels.Jupyter]: '.+(\\.ipynb|\\.yml|\\.txt|\\.lock|\\.toml)$',
[runtimeToolLabels.JupyterLab]: '.+(\\.ipynb|\\.yml|\\.txt|\\.lock|\\.toml)$',
};
return patterns[toolLabel];
};
Expand Down
Loading