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

Enhance ticket creation api and UI to support ticket expiry #957

Merged
merged 2 commits into from
Mar 1, 2024

Conversation

kakawait
Copy link
Contributor

@kakawait kakawait commented Feb 29, 2024

Ticket expiry was already supported on core but no way to defined it, neither from UI neither from API

Changed API to accept new optional field expiry and update UI form to be able to set it from UI

closes #924


UI changes

Screenshot 2024-02-29 at 10 25 12 Screenshot 2024-02-29 at 10 18 50

I've not yet implemented ticket number usage because I'm totally new on Rust and Svelte (even TS). I'd like to validate that addition firstly before starting more development.

If ok for you, I could continue PR to add this part

Ticket expiry was already supported on core but no way to defined it, neither from UI neither from API

Changed API to accept new optional field `expiry` and update UI form to be able to set it from UI

closes warp-tech#924
@kakawait
Copy link
Contributor Author

Test failed regarding missing SONAR_TOKEN, I don't think is related at all with code

@kakawait
Copy link
Contributor Author

Maybe change label

Expiry

by

Expiry (optional, leave empty for no expiration)

What do you think?
Or add checkbox to toggle expiry and toggle datetime input?

@Eugeny Eugeny merged commit 257fb38 into warp-tech:main Mar 1, 2024
6 of 7 checks passed
@Eugeny
Copy link
Member

Eugeny commented Mar 1, 2024

Thank you! I've cleaned it up a bit and updated the SDK to make it the request parameter work - added some details about this to the README

@Eugeny
Copy link
Member

Eugeny commented Mar 1, 2024

@all-contributors add @kakawait for code

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.

Feat: add expiry option to tickets
2 participants