这是indexloc提供的服务,不要输入任何密码
Skip to content

add event triggers #329

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

Merged
merged 90 commits into from
Sep 5, 2018
Merged

add event triggers #329

merged 90 commits into from
Sep 5, 2018

Conversation

tirumaraiselvan
Copy link
Contributor

No description provided.

@hasura-bot
Copy link
Contributor

Review app available at: https://hge-ci-pull-329.herokuapp.com

1 similar comment
@hasura-bot
Copy link
Contributor

Review app available at: https://hge-ci-pull-329.herokuapp.com

res <- runTx ci unlockAllEvents
either ((>> exitFailure) . printJSON) return res
getMaxEventThreads = do
mEnv <- lookupEnv "HASURA_GRAPHQL_EVENTS_HTTP_POOL_SIZE"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be abstracted out in a function:

getFromEnv :: (Read a) => String -> IO a


data HTTPSessionMgr
= HTTPSessionMgr
{ _hsmSession :: !WS.Session
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Get rid of this type. Just use WS.Session. Let's not support insecure connections to webhooks.

retryPol' = R.RetryPolicyM $ liftIO . R.getRetryPolicyM (_hRetryPolicy http)
retryFn' _ = return . _hRetryFn http

runInsecureHTTP
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function is not needed


httpWithLogging
:: (MonadReader r m, MonadIO m, Has HTTPSessionMgr r, Has HLogger r)
=> W.Options -> Bool -> HTTP a -> Maybe ExtraContext -> R.RetryStatus -> m (Either HTTPErr a)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the isSecure argument

& W.checkResponse .~ Just ignoreStatusCodeExceptions

-- the actual function which makes the relevant Wreq calls
finallyRunHTTPPlz sessMgr =
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Plz?

@@ -0,0 +1,26 @@
CREATE OR REPLACE function hdb_views.notify_hasura_{{NAME}}_{{OPERATION}}() RETURNS trigger
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.sql.j2 extension

\ _sql text; \
\ BEGIN \
\ SELECT INTO _sql \
\ string_agg(format('DROP FUNCTION %s(%s) CASCADE;' \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll have to use quote_ident for identifiers.

@hasura-bot
Copy link
Contributor

Review app available at: https://hge-ci-pull-329.herokuapp.com

@hasura-bot
Copy link
Contributor

Review app available at: https://hge-ci-pull-329.herokuapp.com

@hasura-bot
Copy link
Contributor

Review app available at: https://hge-ci-pull-329.herokuapp.com

1 similar comment
@hasura-bot
Copy link
Contributor

Review app available at: https://hge-ci-pull-329.herokuapp.com

@hasura-bot
Copy link
Contributor

Review app available at: https://hge-ci-pull-329.herokuapp.com

1 similar comment
@hasura-bot
Copy link
Contributor

Review app available at: https://hge-ci-pull-329.herokuapp.com

@shahidhk shahidhk merged commit 82e09ef into hasura:master Sep 5, 2018
@hasura-bot
Copy link
Contributor

Review app https://hge-ci-pull-329.herokuapp.com is deleted

hasura-bot pushed a commit that referenced this pull request Feb 2, 2021
GitOrigin-RevId: 4efe84b7c0ed6229392b752632c8f7034a718a2d
hasura-bot pushed a commit that referenced this pull request Feb 27, 2024
Co-authored-by: Paritosh <paritosh@hasura.io>
V3_GIT_ORIGIN_REV_ID: d41a19cb58afb69843d7450d884d1e69b585fcfa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/server Related to server k/enhancement New feature or improve an existing feature s/do-not-merge Do not merge this pull request to master
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants