hackatime/app/models
Mat eb3fa24315
feat: make regular api tokens revocable (#1027)
* add new icon from bounty

* feat: add hackatime normal token revocation

* chore: make linter not hate me (its always whitespace) <3

* fix: combine both revocation apis into one (as requested by mahad)

* chore: add HKA_REVOCATION_KEY to .env.example

* feat: add hackatime normal token revocation

* chore: make linter not hate me (its always whitespace) <3

* fix: combine both revocation apis into one (as requested by mahad)

* chore: add HKA_REVOCATION_KEY to .env.example

* feat: add hackatime normal token revocation

* chore: make linter not hate me (its always whitespace) <3

* fix: combine both revocation apis into one (as requested by mahad)

* chore: add HKA_REVOCATION_KEY to .env.example

* feat: add hackatime normal token revocation

* chore: make linter not hate me (its always whitespace) <3

* fix: combine both revocation apis into one (as requested by mahad)

* fix: stuff greptile suggested

* style: add final newline

* docs: apply .env.example suggestion from @skyfallwastaken

Co-authored-by: Mahad Kalam <55807755+skyfallwastaken@users.noreply.github.com>

* refactor: move apikey rotation to user model

* style: remove unnecessary comment

* fix: tests passing and inappropriate response codes

* refactor: fix response codes

* refactor: move key info request back into separate function

* fix: broken ci because of merge mistake :/

* refactor: remove unnecessary test line and switch to  report_error

* fix: returned name for admin & regular keys

---------

Co-authored-by: Mahad Kalam <55807755+skyfallwastaken@users.noreply.github.com>
2026-04-01 19:37:34 +01:00
..
concerns make leaderboards go vrooom (#1120) 2026-03-30 13:58:18 +01:00
admin_api_key.rb scramble key names once revoked (#762) 2026-01-03 09:12:04 -05:00
api_key.rb Add new setup instructions for time tracking 2025-03-12 19:44:51 -04:00
application_record.rb Initial commit 2025-02-16 03:21:30 -05:00
commit.rb Sync in and display repo metadata 2025-05-30 09:57:27 -04:00
currently_hacking.rb Inertia migration/UI3 (#911) 2026-02-09 11:26:30 +00:00
deletion_request.rb data deletion oneshot (#691) 2025-12-07 22:49:40 -05:00
email_address.rb Change email unlink validation to allow "unknown" source emails to unlink (#699) 2025-12-09 19:03:35 -05:00
email_verification_request.rb Initial email verification request implementation (#205) 2025-05-05 11:46:31 -04:00
goal.rb goaaaal! (#985) 2026-02-19 18:47:01 +00:00
heartbeat.rb Bye raw_heartbeat_uploads! (#1098) 2026-03-22 18:16:19 +00:00
heartbeat_import_run.rb Imports v2.5 (#1065) 2026-03-13 09:34:40 +00:00
leaderboard.rb leaderboards rework (#623) 2025-11-15 17:34:13 -05:00
leaderboard_entry.rb Switch leaderboard away from using slack id 2025-03-13 17:59:35 -04:00
oauth_application.rb Oauth apps for all! (#810) 2026-01-19 22:24:21 -05:00
project_repo_mapping.rb make archive and unarchive bypass validations (#773) 2026-01-06 11:19:44 -05:00
repo_host_event.rb Rubocop format 2025-05-15 09:36:38 -04:00
repository.rb Spring cleaning (#1074) 2026-03-15 15:26:32 +00:00
sailors_log.rb Rewrite sailors log to work with user_id index (#156) 2025-04-11 14:28:21 -04:00
sailors_log_leaderboard.rb Attempt to fix name lookup for sailorslog leaderboard 2025-03-26 02:52:18 -04:00
sailors_log_notification_preference.rb Fix sailors log project list initialization 2025-02-23 21:28:21 -05:00
sailors_log_slack_notification.rb Rewrite sailors log to work with user_id index (#156) 2025-04-11 14:28:21 -04:00
sign_in_token.rb add program magic link route :3 (#285) 2025-06-08 18:54:59 -04:00
trust_level_audit_log.rb audit logs because neon messed it up 2025-06-30 22:52:29 -04:00
user.rb feat: make regular api tokens revocable (#1027) 2026-04-01 19:37:34 +01:00