67P / hyperchannel

Kosmos Chat for the Web
Mozilla Public License 2.0
20 stars 3 forks source link

Refactoring spaces to accounts, channels #227

Closed raucao closed 3 years ago

raucao commented 3 years ago

Introducing some big changes to the data model and routes (mostly paired with @galfert on the code).

We have removed the concept of spaces entirely, and more importantly, the nesting of channels within spaces. Instead, we now use the more common concept of chat accounts, which channels only carry a reference to.

In (persistent/remote) storage, we have added channels as a new document/object type, so they are now persisted in a much more powerful way than simply an array of strings within a space.

XMPP accounts already work again as before. But we still have some things to do in other places:

I think some of the remaining tasks should probably be done in separate PRs against this one, because this is already very big.

raucao commented 3 years ago

I have migrated the old Travis CI repo to travis-ci.com and opened a PR against this branch to fix the builds.

Unfortunately, it looks like we'll run out of free credits rather quickly. Also, things are even buggier and more unstable than previously. I had pretty much the most abysmal experience over there just now.

On the plus side, this restores our CI for now, at least for a while. We could manually apply for open-source credits on Travis now, or we can resolve #212 instead.

raucao commented 3 years ago

Last red check has been resolved. I finally dealt with CodeClimate GitHub auth again, in order to be able to change issue statuses there. Also changed the CodeClimate config a bit, and removed some duplication in the code.

super-green