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

Job Rendering Does Not Follow field_order Defined in Meta #459

Closed
jvanderaa opened this issue May 17, 2021 · 0 comments · Fixed by #467
Closed

Job Rendering Does Not Follow field_order Defined in Meta #459

jvanderaa opened this issue May 17, 2021 · 0 comments · Fixed by #467
Labels
type: bug Something isn't working as expected

Comments

@jvanderaa
Copy link
Contributor

Environment

  • Python version: 3.6.x (Docker Latest)
  • Nautobot version: 1.0.1

Steps to Reproduce

  1. Create a job with multiple variables
  2. Set the order to be displayed via field_order variable with a list of items
  3. Navigate to job

Expected Behavior

Expected the order to follow the field_order variable

Observed Behavior

The field order follows what is defined in order as a variable

Job File

class my_job(Job):
    """My job demo."""

    var23 = StringVar(
        description="I want to be second"
    )

    var2 = StringVar(
        description="Hello"
    )

    class Meta:
        """Metaclass attrs."""
        field_order = [
            "var2",
            "var23"
        ]

Result

Screen Shot 2021-05-17 at 08 10 58

@jedelman8 jedelman8 added status: under review type: bug Something isn't working as expected and removed status: under review labels May 19, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working as expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants