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

Set up ttl queue #5

Merged
merged 11 commits into from
Oct 1, 2023
Merged

Set up ttl queue #5

merged 11 commits into from
Oct 1, 2023

Commits on Sep 30, 2023

  1. Configuration menu
    Copy the full SHA
    218c0a3 View commit details
    Browse the repository at this point in the history
  2. run deno task all

    EthanThatOneKid committed Sep 30, 2023
    Configuration menu
    Copy the full SHA
    1ea412c View commit details
    Browse the repository at this point in the history
  3. add queue.ts

    EthanThatOneKid committed Sep 30, 2023
    Configuration menu
    Copy the full SHA
    3375558 View commit details
    Browse the repository at this point in the history
  4. run deno task all

    EthanThatOneKid committed Sep 30, 2023
    Configuration menu
    Copy the full SHA
    adeb6bb View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2023

  1. Configuration menu
    Copy the full SHA
    b04b8c9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2ae8b67 View commit details
    Browse the repository at this point in the history
  3. refactor commit message format and TTL handling

    1. Refactored the way commit messages are composed and formatted.
    2. Added support for displaying TTL information in the success message if a TTL (Time to Live) duration is provided.
    3. Enqueued a delete operation when a TTL is set to automatically delete the shortlink after the specified time.
    4. Handled errors gracefully using error checking.
    
    These changes should enhance the readability and functionality of the code related to commit creation and TTL management.
    
    Resolves <#5 (comment)>. Suggested by @karnikaavelumani.
    EthanThatOneKid committed Oct 1, 2023
    Configuration menu
    Copy the full SHA
    ae225af View commit details
    Browse the repository at this point in the history
  4. nit (formatting)

    EthanThatOneKid committed Oct 1, 2023
    Configuration menu
    Copy the full SHA
    b3fadc5 View commit details
    Browse the repository at this point in the history
  5. fix errors

    ```
    gcp-us-east1
    Error: Invalid force
        at makeShorterOptions (file:///src/main.ts:211:11)
        at handle (file:///src/main.ts:110:25)
        at eventLoopTick (ext:core/01_core.js:183:11)
        at async ext:deno_http/00_serve.js:442:22
    10/1/2023, 1:56:42 PM
    ```
    Oops
    
    ```
    gcp-us-east1
    Queues are not supported for preview deployments. Enqueued messages will be dropped.
    10/1/2023, 1:55:05 PM
    ```
    Bruh
    EthanThatOneKid committed Oct 1, 2023
    Configuration menu
    Copy the full SHA
    85ab40b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9597d8e View commit details
    Browse the repository at this point in the history
  7. fix Discord timestamp calculation

    Incorrect output:
    
    ```
    Created commit [update `/example` shortlink](https://acmcsuf.com/code/commit/0333b548246fbddd8c309637f06fd31b14d6f805)!
    
    This shortlink will be expire in <t:1696195785765:R>.
    ```
    EthanThatOneKid committed Oct 1, 2023
    Configuration menu
    Copy the full SHA
    62fb804 View commit details
    Browse the repository at this point in the history