-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Protocol Integration #35
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! I like where this is going. Some minor nits but I think this is a better structure from before. sync vs unsync is good wording for it IMO.
@fauno Heads up, this changes the HTTP API a bit for updating site data.
Could you point me to those changes? I saw there's a change on NewSite and publication changed to a protocolos object of protocol: Boolean pairs? |
Nevermind, I'm reading the files :) |
i'm having this tsc error when running
not sure if this change affects the api endpoints, i'd have to adapt the client. it seems to work for a nanoid still, but not sure if internally it thinks it's the domain name
|
Oh, I messed up some typescript types, working on fixing it now |
Just gonna add some more fixes for the protocol stuff first |
Make sure to do an |
Remaining steps:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the one nit pic I think this is good to go!
Mind addressing the comment and then merging in?
Also, I really like your approach of adding a context to tests for setup and teardown.
v1/config/sites.ts
Outdated
const obj = { | ||
const id = cfg.domain | ||
if (!isValidHostname(id)) { | ||
return await Promise.reject(new Error('Invalid hostname. Please ensure you leave out the port and protocol specifiers (e.g. no https://)')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does throw
not work for this case? If it's a linter thing, I'd appreciate it if we could disable whatever rule is mandating this code style. :P
Closes hyphacoop/distributed-press-organizing#62