Skip to content

Add Unique Identifier to Scripts Interface #4

Description

@bethgrace5

Summary
Each script needs to be uniquely identified, so we can do things like make a route to view/edit the individual script - such as /scripts/3, which would be for script identified as 3. The name and command can change, but the Id never changes.

Implementation Details
In the Scripts interface in /models/script, add a field named id as an int for now. Update the InMemoryScripts created from #2 to each have an id, the first one starting at 1. So we know the Id is working, for now, when a script is copied to the clipboard, print "script [id] copied!".

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions