Skip to content

Commit

Permalink
chore:Ticketing/Events removal (#212)
Browse files Browse the repository at this point in the history
* removed the api from the public docs

* added a migration to remove all tickets from the database
  • Loading branch information
CommanderStorm authored Sep 12, 2023
1 parent d7965bc commit 65bfb78
Show file tree
Hide file tree
Showing 11 changed files with 587 additions and 1,223 deletions.
1,413 changes: 547 additions & 866 deletions server/api/CampusService.pb.go

Large diffs are not rendered by default.

87 changes: 0 additions & 87 deletions server/api/CampusService.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 0 additions & 32 deletions server/api/CampusService.proto
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,6 @@ service Campus {
};
}

rpc GetEventList(GetEventListRequest) returns (GetEventListReply) {
option (google.api.http) = {
get: "/event/list",
};
}


rpc GetKino(GetKinoRequest) returns (GetKinoReply) {
option (google.api.http) = {
Expand Down Expand Up @@ -654,32 +648,6 @@ message StudyRoom{
string building_name = 5;
}

message GetEventListRequest{
// optional parameter, will return all events if no id is specified
int32 eventId = 1;
}

message GetEventListReply{
repeated EventListMsgElement events = 1;
}

message EventListMsgElement{
string name = 1;
string path = 2;
int32 event = 3;
int32 news = 4;
int32 kino = 5;
int32 file = 6;
string title = 7;
string description = 8;
string locality = 9;
string link = 10;
google.protobuf.Timestamp start = 11;
google.protobuf.Timestamp end = 12;
int32 ticket_group = 13;
}


message GetKinoRequest{
int32 lastId = 1;
}
Expand Down
37 changes: 0 additions & 37 deletions server/api/CampusService_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

95 changes: 0 additions & 95 deletions server/api/gen/openapiv2/CampusService.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -586,38 +586,6 @@
]
}
},
"/event/list": {
"get": {
"operationId": "Campus_GetEventList",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/apiGetEventListReply"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "eventId",
"description": "optional parameter, will return all events if no id is specified",
"in": "query",
"required": false,
"type": "integer",
"format": "int32"
}
],
"tags": [
"Campus"
]
}
},
"/feedback": {
"post": {
"operationId": "Campus_SendFeedback",
Expand Down Expand Up @@ -1420,57 +1388,6 @@
}
}
},
"apiEventListMsgElement": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"path": {
"type": "string"
},
"event": {
"type": "integer",
"format": "int32"
},
"news": {
"type": "integer",
"format": "int32"
},
"kino": {
"type": "integer",
"format": "int32"
},
"file": {
"type": "integer",
"format": "int32"
},
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"locality": {
"type": "string"
},
"link": {
"type": "string"
},
"start": {
"type": "string",
"format": "date-time"
},
"end": {
"type": "string",
"format": "date-time"
},
"ticketGroup": {
"type": "integer",
"format": "int32"
}
}
},
"apiGetAreaFacilitiesByBuildingNrReply": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -1543,18 +1460,6 @@
}
}
},
"apiGetEventListReply": {
"type": "object",
"properties": {
"events": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/apiEventListMsgElement"
}
}
}
},
"apiGetKinoReply": {
"type": "object",
"properties": {
Expand Down
3 changes: 0 additions & 3 deletions server/backend/cron/cronjobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ const (
ChatType = "chat"
KinoType = "kino"
RoomfinderType = "roomfinder"
TicketSaleType = "ticketsale"
AlarmType = "alarm" */
)

Expand Down Expand Up @@ -114,8 +113,6 @@ func (c *CronService) Run() error {
g.Go(func() error { return c.kinoCron() })
case RoomfinderType:
g.Go(func() error { return c.roomFinderCron() })
case TicketSaleType:
g.Go(func() error { return c.roomFinderCron() })
case AlarmType:
g.Go(func() error { return c.alarmCron() })
*/
Expand Down
7 changes: 0 additions & 7 deletions server/backend/cron/ticketsale.go

This file was deleted.

Loading

0 comments on commit 65bfb78

Please sign in to comment.