-
Notifications
You must be signed in to change notification settings - Fork 3
Docker + config + Fix ssl listener fixes #9
base: master
Are you sure you want to change the base?
Conversation
supported anymore in the uabot repo. REmove hack from docker file. Now it should work nicely. https://coveord.atlassian.net/browse/DA-720
supported anymore in the uabot repo. REmove hack from docker file. Now it should work nicely. https://coveord.atlassian.net/browse/DA-720
Why did you rename the vendor/ folder? |
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.
Why is the vendor directory moved/renamed?
I approve of the removal of the hack/visit.go strongly however 👍
@@ -26,12 +26,6 @@ func (builder *botConfigurationBuilder) WithLanguages(languages []string) *botCo | |||
return builder | |||
} | |||
|
|||
func (builder *botConfigurationBuilder) AllAnonymous() *botConfigurationBuilder { |
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.
You could keep the function even if you do not use it anymore?
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.
No, it wouldn't build.
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.
What was the error?
The existence of a function shouldn't prevent you from building :)
server/handlers.go
Outdated
@@ -147,8 +147,10 @@ func validateConfig(config *explorerlib.Config) error { | |||
func Stop(writter http.ResponseWriter, request *http.Request) { | |||
Vars := mux.Vars(request) | |||
id, _ := uuid.FromString(Vars["id"]) | |||
scenariolib.Info.Printf("Stopping worker") |
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.
Please use Println()
, Printf()
is meant to be used with a format string.
Println
will give you a new line every time.
@erocheleau I didn't do any rename/move. I don't have that in my local repo. ¯_(ツ)_/¯ |
server/handlers.go
Outdated
close(quitChannels[id]) | ||
delete(quitChannels, id) | ||
scenariolib.Info.Printf("Worker stopped") |
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.
Println too
Fixed orgId support https://coveord.atlassian.net/browse/DA-720
@@ -26,12 +26,6 @@ func (builder *botConfigurationBuilder) WithLanguages(languages []string) *botCo | |||
return builder | |||
} | |||
|
|||
func (builder *botConfigurationBuilder) AllAnonymous() *botConfigurationBuilder { | |||
builder.config.AllowAnonymous = true |
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.
@erocheleau that prevented the build to be successful.
The Config object in uabot repo doesn't have the AllowAnonymous property anymore.
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.
ah, yes, change it so it sets the AnonymousThreshold float64
to 1 instead. And there is no longer a need to allowAnonymous
.
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.
Just remove the line builder.config.AllowAnonymous = true
and that should be it.
# Conflicts: # Dockerfile # main.go
With all those commits the build and run of the docker image is without flaws.