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

DM-48733: times-square - New template render route #4172

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

fajpunk
Copy link
Member

@fajpunk fajpunk commented Feb 6, 2025

A new endpoint was added to expose template rendering for a GitHub notebook template at a different path that includes the GitHub URL path for the notebook. This updates the template rendering GafaelfawrIngress to restrict rendering to only lsst-sqre/nublado-seeds repo notebooks.

Once this is merged, notebook-from-portal-query functionality won't work with any lab image that doesn't also have an rsp-jupyter-extensions package with this change.

…ress

There is a [new template rendering
endpoint](lsst-sqre/times-square#92) in times
square that finds a notebook template to render based on the GitHub URL
path. We want to [use this new
endpoint](lsst-sqre/rsp-jupyter-extensions#42)
in our Jupyter extension to generate a notebook from a portal query so
that we can further restrict this usage to only templates from certain
GitHub repos, in this case, the lsst-sqre/nublado-seeds repo.
@fajpunk fajpunk force-pushed the tickets/DM-48733/times-square-noteburst-idfprod branch from 74db7fc to b9f99ac Compare February 6, 2025 15:31
@fajpunk fajpunk mentioned this pull request Feb 6, 2025
8 tasks
@fajpunk fajpunk force-pushed the tickets/DM-48733/times-square-noteburst-idfprod branch 3 times, most recently from 7187586 to b9f99ac Compare February 6, 2025 16:19
@jonathansick
Copy link
Member

So before we merge this we're going to drop commit 4f1030e, is that right?

I hadn't realized that this change is effectively going to break the templating feature in older scilat-lab images because we can't backport rsp-jupyter-extensions to them (right?). This is worth bringing up at a standup, but on the other hand, I can't see a way around this.

@fajpunk
Copy link
Member Author

fajpunk commented Feb 6, 2025

Yep, the ingress changes are going to break any lab without the rsp extensions changes for non-admins, and I too can't see a way to do it without breaking old sciplat-lab images. This was just intended to test that the planned ingress changes would work, I'm not intending it to be merged yet. I'm going to make another PR to just bump Times Square.

@fajpunk fajpunk marked this pull request as draft February 6, 2025 17:57
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.

2 participants