-
Notifications
You must be signed in to change notification settings - Fork 64
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
Conversion to umbrella project and other improvements #31
Conversation
For a reliable startup, sup_wrapper is needed after all..
…way & fixed dependencies
…gateway into umbrella
@mmacai with 1.1.0 out the door, it's time to get this merged into mainline and iterate from there |
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.
mix docs
outputs:
warning: function UUID.uuid4/0 is undefined (module UUID is not available)
lib/rig_inbound_gateway/request_logger/kafka.ex:34
same message produced by running mix phx.server
docker build ...
failed with:
** (File.Error) could not open "./guides/operator-guide.md": no such file or directory
(elixir) lib/file.ex:1183: File.open!/2
@@ -0,0 +1,20 @@ | |||
# RigApi |
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.
Do we want to keep this file? or maybe better question do we want to have README.md
files for each umbrella app?
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.
I'll keep the README files but only include a link to the developer's guide
apps/rig_auth/README.md
Outdated
```elixir | ||
def deps do | ||
[ | ||
{:rig_auth, "~> 0.1.0"} |
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.
Should be 2.0.0, probably.
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.
I'd say we remove this altogether
tracker = | ||
Stubr.stub!( | ||
[ | ||
# @callback track(jti: String.t, expiry: Timex.DateTime.t) :: {:ok, String.t} |
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.
Can be removed? Same for commented callbacks below.
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.
hm that's meant as documentation as to what the mock should provide. But it's not checked by the compiler, so perhaps should be removed, not sure
watchers: [] | ||
|
||
# Do not include metadata nor timestamps in development logs TODO why? | ||
#config :logger, :console, format: "[$level] $message\n" |
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.
Remove?
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.
jep
@@ -77,6 +77,20 @@ defmodule RigWeb.Presence.Channel do | |||
end | |||
end | |||
|
|||
@doc """ | |||
Sends off outgoing messages. |
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.
Didn't know about this one.
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.
I still think it's rather strange
apps/rig_outbound_gateway/README.md
Outdated
|
||
Work in progress: | ||
|
||
- HTTP API |
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.
Isn't this implemented or is the message
API endpoint something different?
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.
removed that
apps/rig_outbound_gateway/mix.exs
Outdated
{:brod, "~> 3.3"}, | ||
# JSON parser: | ||
{:poison, "~> 2.0 or ~> 3.0"}, | ||
# HTTP server: |
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.
Remove deps?
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.
done
config/config.exs
Outdated
:topic, | ||
:partition, | ||
:offset, | ||
# aws_sqs_metadata |
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.
I guess this shouldn't be here yet.
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.
true
config/dev.exs
Outdated
watchers: [] | ||
|
||
# Do not include metadata nor timestamps in development logs TODO why? | ||
# Do not include metadata nor timestamps in development logs | ||
#config :logger, :console, format: "[$level] $message\n" |
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.
Remove?
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.
done
version
Outdated
@@ -0,0 +1,4 @@ | |||
%{ | |||
rig: "2.0.0-dev", | |||
elixir: "~> 1.5", |
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.
We should be able finally use 1.6. Same goes for Dockerfile.
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.
okay
|
Tested with channels example and with some minor changes in example worked for both ws and sse. |
No description provided.