Add serverside CHECK_USERNAME-command #39

Closed
opened 2026-04-01 13:28:27 +02:00 by lars.winzer · 18 comments
lars.winzer commented 2026-04-01 13:28:27 +02:00 (Migrated from git.scicore.unibas.ch)

Task

Summary

Adds parsers and handlers for checking if the provided nickname is available.

Context

CommandParser, Request, CommandHandler, Response

Current Progress

  • CheckUsernameCommandParser
  • CheckUsernameRequest
  • CheckUsernameCommandHandler
  • CheckUsernameResponse

Notes

Request

CHECK_USERNAME USERNAME='<USERNAME>'

Response

If the username is free

+OK
  STATUS=FREE
END

and if its already taken

+OK
  STATUS=TAKEN
END

Checklist

  • I outlined checkpoints describing phases of my work related to this task
  • I added relevant labels
  • I linked to other issues or branches that must be completed first
## Task <!--The reccommended type is: Task--> ### Summary Adds parsers and handlers for checking if the provided nickname is available. ### Context CommandParser, Request, CommandHandler, Response ### Current Progress - [x] CheckUsernameCommandParser - [x] CheckUsernameRequest - [x] CheckUsernameCommandHandler - [x] CheckUsernameResponse ### Notes #### Request ``` CHECK_USERNAME USERNAME='<USERNAME>' ``` #### Response If the username is free ``` +OK STATUS=FREE END ``` and if its already taken ``` +OK STATUS=TAKEN END ``` ### Checklist - [x] I outlined checkpoints describing phases of my work related to this task - [x] I added relevant labels - [x] I linked to other issues or branches that must be completed first
lars.winzer commented 2026-04-01 13:28:38 +02:00 (Migrated from git.scicore.unibas.ch)

marked this task as related to #37

marked this task as related to #37
lars.winzer commented 2026-04-01 13:28:45 +02:00 (Migrated from git.scicore.unibas.ch)

marked the checklist item I linked to other issues or branches that must be completed first as completed

marked the checklist item **I linked to other issues or branches that must be completed first** as completed
lars.winzer commented 2026-04-02 12:47:26 +02:00 (Migrated from git.scicore.unibas.ch)

assigned to @lars.winzer

assigned to @lars.winzer
lars.winzer commented 2026-04-02 12:49:21 +02:00 (Migrated from git.scicore.unibas.ch)

created branch feat/39-add-serverside-check-nick-command to address this issue

created branch [`feat/39-add-serverside-check-nick-command`](/cs108-fs26/Gruppe-13/-/compare/main...feat%2F39-add-serverside-check-nick-command) to address this issue
lars.winzer commented 2026-04-02 12:50:07 +02:00 (Migrated from git.scicore.unibas.ch)

changed title from Add serverside CHECK-NICK command to Add serverside CHECK_NICK-command

<p>changed title from <code class="idiff">Add serverside CHECK<span class="idiff left deletion">-</span>NICK<span class="idiff right deletion"> </span>command</code> to <code class="idiff">Add serverside CHECK<span class="idiff left addition">_</span>NICK<span class="idiff right addition">-</span>command</code></p>
lars.winzer commented 2026-04-02 13:07:24 +02:00 (Migrated from git.scicore.unibas.ch)

changed title from Add serverside CHECK_NICK-command to Add serverside CHECK_USERNAME-command

<p>changed title from <code class="idiff">Add serverside CHECK_<span class="idiff left right deletion">NICK</span>-command</code> to <code class="idiff">Add serverside CHECK_<span class="idiff left right addition">USERNAME</span>-command</code></p>
lars.winzer commented 2026-04-02 13:07:24 +02:00 (Migrated from git.scicore.unibas.ch)

changed the description

changed the description
lars.winzer commented 2026-04-02 13:09:09 +02:00 (Migrated from git.scicore.unibas.ch)

Renamed command from CHECK_NICK to CHECK_USERNAME as a username is provided as a nickname.

Renamed command from `CHECK_NICK` to `CHECK_USERNAME` as a username is provided as a nickname.
lars.winzer commented 2026-04-02 13:33:20 +02:00 (Migrated from git.scicore.unibas.ch)

mentioned in issue #46

mentioned in issue #46
lars.winzer commented 2026-04-02 13:34:36 +02:00 (Migrated from git.scicore.unibas.ch)

added 15m of time spent at 2026-04-02 12:00:00 +0200

added 15m of time spent at 2026-04-02 12:00:00 +0200
lars.winzer commented 2026-04-02 13:34:41 +02:00 (Migrated from git.scicore.unibas.ch)

marked the checklist item CheckUsernameRequest as completed

marked the checklist item **CheckUsernameRequest** as completed
lars.winzer commented 2026-04-02 13:34:43 +02:00 (Migrated from git.scicore.unibas.ch)

marked the checklist item CheckUsernameCommandParser as completed

marked the checklist item **CheckUsernameCommandParser** as completed
lars.winzer commented 2026-04-02 14:05:08 +02:00 (Migrated from git.scicore.unibas.ch)

mentioned in task #47

mentioned in task #47
lars.winzer commented 2026-04-02 15:03:26 +02:00 (Migrated from git.scicore.unibas.ch)

marked the checklist item CheckUsernameCommandHandler as completed

marked the checklist item **CheckUsernameCommandHandler** as completed
lars.winzer commented 2026-04-02 15:03:27 +02:00 (Migrated from git.scicore.unibas.ch)

marked the checklist item CheckUsernameResponse as completed

marked the checklist item **CheckUsernameResponse** as completed
lars.winzer commented 2026-04-02 15:04:07 +02:00 (Migrated from git.scicore.unibas.ch)

added 1h 30m of time spent at 2026-04-02 12:00:00 +0200

added 1h 30m of time spent at 2026-04-02 12:00:00 +0200
lars.winzer commented 2026-04-02 15:09:07 +02:00 (Migrated from git.scicore.unibas.ch)

mentioned in merge request !75

mentioned in merge request !75
lars.winzer commented 2026-04-02 15:10:29 +02:00 (Migrated from git.scicore.unibas.ch)

mentioned in commit 5568c8a073

mentioned in commit 5568c8a073aeb986bfc8c204db4e250ba0ab6d40
lars.winzer (Migrated from git.scicore.unibas.ch) closed this issue 2026-04-02 15:10:30 +02:00
This repo is archived. You cannot comment on issues.
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: University-of-Basel-Studentprojects/Programmierprojekt#39