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

After adding a block as a job variable default to a work pool, its base job template does not load on the Edit page unless I resize to a different breakpoint #13189

Open
5 of 8 tasks
abrookins opened this issue May 1, 2024 · 0 comments
Labels
bug Something isn't working ui Related to the Prefect web interface

Comments

@abrookins
Copy link
Collaborator

abrookins commented May 1, 2024

First check

  • I added a descriptive title to this issue.
  • I used the GitHub search to find a similar issue and didn't find it.
  • I refreshed the page and this issue still occurred.
  • I checked if this issue was specific to the browser I was using by testing with a different browser.

Bug summary

If I add a block as a job variable default to a work pool's base job template (using the "Advanced" tab), the form saves successfully, but when I edit the work pool again, its base job template section doesn't load (neither "Defaults" nor "Advanced"). However, if I resize the window to trigger another breakpoint, the page redraws with that section loaded.

Reproduction

  1. Create a JSON block with one field, {"name": "bob"}, save the block ID
  2. Create a new Local Process work pool
  3. Choose next and then the Advanced tab
  4. Add an entry to the "variables" object in the JSON that references the block:
                "user": {
                    "title": "User",
                    "description": "user details",
                    "type": "object",
                    "additionalProperties": {"type": "string"},
                    "default": {"$ref": {"block_document_id": "block ID"}}
                }
  1. Save
  2. Click the triple dot menu then "Edit"
  3. The base job template shouldn't load
  4. Resize the window (I make mine very small) and witness the form appear

Error

I don't see any obviously related console errors.

After saving and returning to the Edit page:
image

After resizing:
image

Browsers

  • Chrome
  • Firefox
  • Safari
  • Edge

Prefect version

2.18.1+56.g09bfc6260d.dirty

Additional context

Version:             2.18.1+53.g9b1b59cfd5
API version:         0.8.4
Python version:      3.11.8
Git commit:          9b1b59cf
Built:               Wed, May 1, 2024 11:33 AM
OS/Arch:             darwin/arm64
Profile:             default
Server type:         server
@abrookins abrookins added bug Something isn't working ui Related to the Prefect web interface needs:triage Needs feedback from the Prefect product team labels May 1, 2024
@desertaxle desertaxle removed the needs:triage Needs feedback from the Prefect product team label May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ui Related to the Prefect web interface
Projects
None yet
Development

No branches or pull requests

2 participants