Wiredcraft / fullpm

Kanban board for GitHub issues
https://wiredcraft.com/products/fullpm
1 stars 3 forks source link

Naming of the inbound Github repo can not inclued '.' symbol #36

Closed ChopperLee2011 closed 7 years ago

ChopperLee2011 commented 8 years ago

the backend uses Github repo name as one CouchDB database name, so follow CouchDB naming limitation

all lowercase letters (a-z), digits (0-9), or any of the _$()+-/

we can not create the cache DB which include '.'

so here is the solution base on the design for now:

EcutDavid commented 8 years ago

I suggest using your second recommendation, and we can create a lib dir in repo's root, and provide methods like parseRepo, repoNameEncoding or repoNameDecoding and we can share the method both front-end and back-end.

JuhaS commented 8 years ago

I had these comments in slack:

hunvreus commented 8 years ago

As @JuhaS mentioned, we could simply use the repo-id; it won't break and will support renaming.

JuhaS commented 8 years ago

Actually I would probably recommend not tying the boards to the repositories directly at all. I mean we would have a board-id for each board that identifies them and maybe inside that define board-type and some github related fields. This would give us more flexibility in the future and decouple the board mechanics from anything github related. For example making it easier to create custom boards where board is tied to many repos, or personal boards where board is tied to user.