这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
224 commits
Select commit Hold shift + click to select a range
55e8f39
init
tirumaraiselvan Dec 6, 2019
332f1ca
rename files
tirumaraiselvan Dec 13, 2019
4f2d7f6
WIP
tirumaraiselvan Dec 13, 2019
85ac116
[temp] allow warnings
tirumaraiselvan Dec 17, 2019
522513b
support one-off type
tirumaraiselvan Dec 17, 2019
c938522
[wip] take optional payload
tirumaraiselvan Dec 18, 2019
879c88a
log invocations for each request
tirumaraiselvan Dec 18, 2019
a004ddc
change application currentTime to db now()
tirumaraiselvan Dec 18, 2019
0b2f12e
on delete cascade
tirumaraiselvan Dec 18, 2019
7386d8d
change time formatting
tirumaraiselvan Dec 18, 2019
dc0fd1e
bugfix: lock on id and not name
tirumaraiselvan Dec 18, 2019
7f4acc1
run scheduler every 10 s
tirumaraiselvan Dec 18, 2019
b8e8c07
add retry conf
tirumaraiselvan Dec 23, 2019
36ba5c5
derive Lift using custom cron package, also add retry_conf to metadata
tirumaraiselvan Dec 24, 2019
46f2962
Re-enable -Werror in CI
lexi-lambda Dec 24, 2019
a79083b
bump lts, upgrade time, refactors, stub functions
tirumaraiselvan Dec 25, 2019
322ee8b
process dead event
tirumaraiselvan Dec 25, 2019
981578b
add scheduled trigger to cache
tirumaraiselvan Dec 25, 2019
96acd3a
take webhook from env and use schema-cache more effectively
tirumaraiselvan Jan 6, 2020
4178215
describe time formats in the API
tirumaraiselvan Jan 7, 2020
32626c5
fix WIP compilation errors
tirumaraiselvan Jan 8, 2020
4f1939d
Merge branch 'master' of github.com:hasura/graphql-engine into schedu…
tirumaraiselvan Jan 8, 2020
c011638
add retry functionality
tirumaraiselvan Jan 8, 2020
5fb35ad
[wip] implement cancel_scheduled_event api
tirumaraiselvan Jan 8, 2020
3d3605d
implement cancel_scheduled_event api
tirumaraiselvan Jan 10, 2020
dec2857
implement delete_scheduled_trigger api
tirumaraiselvan Jan 13, 2020
bc22952
implement update_scheduled_trigger
tirumaraiselvan Jan 15, 2020
9581af8
Merge remote-tracking branch 'upstream/master' into scheduled-triggers
tirumaraiselvan Jan 17, 2020
822d3f4
Merge remote-tracking branch 'upstream/master' into scheduled-triggers
tirumaraiselvan Jan 18, 2020
d88d155
Merge remote-tracking branch 'upstream/master' into scheduled-triggers
tirumaraiselvan Jan 24, 2020
e59ca44
add upgrade migration
tirumaraiselvan Jan 27, 2020
a5b7638
[wip] review comments
tirumaraiselvan Jan 28, 2020
8f040e0
use MonadMask for general bracket
tirumaraiselvan Jan 29, 2020
3a4c3f5
fix tolerance time units
tirumaraiselvan Jan 29, 2020
4784e19
fix tests (change in error msgs) after aeson update
tirumaraiselvan Feb 3, 2020
f453582
change default retry value
tirumaraiselvan Feb 5, 2020
e4135fe
add api reference docs
tirumaraiselvan Feb 5, 2020
a847711
remove type family fanciness
tirumaraiselvan Feb 10, 2020
f252082
remove traces
tirumaraiselvan Feb 10, 2020
a1e453b
set lower bound for cron package
tirumaraiselvan Feb 11, 2020
edc35be
use round since 'DiffTime' works in seconds
tirumaraiselvan Feb 11, 2020
c1aa809
use unfoldr
tirumaraiselvan Feb 11, 2020
47d2601
add docs and remove unnecessary pragmas
tirumaraiselvan Feb 11, 2020
245e296
move orphaned instances to Hasura.RQL.Instances
tirumaraiselvan Feb 12, 2020
c8638e5
create one-off event during creation
tirumaraiselvan Feb 12, 2020
2c0dcaf
only include scheduled triggers in metadata if specified in api
tirumaraiselvan Feb 13, 2020
2d87c7b
add scheduled triggers to metadata apis
tirumaraiselvan Feb 13, 2020
1db07fe
implement `track_scheduled_trigger` api and remove `include_in_metada…
tirumaraiselvan Feb 14, 2020
6cea9c4
update docs
tirumaraiselvan Feb 14, 2020
b3aa0b6
few bug fixes
tirumaraiselvan Feb 14, 2020
74c7d74
add `untrack_scheduled_trigger` api
tirumaraiselvan Feb 14, 2020
90d0d1c
change OneOff to AdHoc type and implement `create_scheduled_event` api
tirumaraiselvan Feb 14, 2020
98a490b
adhoc trigger takes an optional timestamp value
tirumaraiselvan Feb 16, 2020
748ea4e
change logic of creating upcoming events (from next day to next 100)
tirumaraiselvan Feb 17, 2020
6fb69e0
create scheduled events for cron during create also
tirumaraiselvan Feb 17, 2020
d8ad5db
mark column as `cancelled` instead of deleting row for `cancel_schedu…
tirumaraiselvan Feb 17, 2020
3f8c6ea
validate (non)existence of scheduled trigger in DDLs
tirumaraiselvan Feb 18, 2020
0919f9a
merge master
tirumaraiselvan Feb 25, 2020
818344a
add downgrade 33_to_32
tirumaraiselvan Feb 25, 2020
bf5d4e8
add a new column 'header_conf' in the scheduled_trigger table (#78)
codingkarthik Feb 25, 2020
b4fab74
no-op
tirumaraiselvan Feb 25, 2020
0ca80a7
add tests for scheduled triggers (#79)
codingkarthik Feb 25, 2020
5ea32c8
rm unneeded file
tirumaraiselvan Feb 25, 2020
cdf5641
fix export of headers in scheduled triggers metadata
tirumaraiselvan Feb 25, 2020
d340f6c
change the data type of scheduled_time to TIMESTAMPTZ (#80)
codingkarthik Feb 25, 2020
888fa59
no-op
tirumaraiselvan Feb 25, 2020
b5ac683
track hdb_catalog tables for scheduled triggers
tirumaraiselvan Feb 27, 2020
c8f2e1c
doc improvements from review
tirumaraiselvan Feb 27, 2020
02d9a1c
Merge branch 'master' into scheduled-triggers
tirumaraiselvan Feb 28, 2020
4f4e099
switch `Either a b` to `MonadError`
tirumaraiselvan Mar 3, 2020
31fb11d
incorporate NominalDiffTime clock units in `Data.Time.Clock.Units`
tirumaraiselvan Mar 3, 2020
354e22f
Merge branch 'master' into scheduled-triggers
tirumaraiselvan Mar 3, 2020
4fe45bc
Constrain setup.Cabal to be compatible with cabal-install 2.4
lexi-lambda Mar 3, 2020
c0774b0
clean metadata export for ST
codingkarthik Mar 4, 2020
ac54a45
[skip ci] wip: unit tests for `Duration 'Calendar`
tirumaraiselvan Mar 4, 2020
2885b9a
convert PicoSeconds to Seconds in the toFixedPico function
codingkarthik Mar 4, 2020
5d362bc
Merge branch 'master' into tiru-scheduled-triggers
codingkarthik Mar 11, 2020
9225077
modified the logic of consuming scheduled events
codingkarthik Mar 12, 2020
73db7d6
fix the warnings in the EventTrigger and ScheduledTrigger files
codingkarthik Mar 12, 2020
e80cc55
use "scheduled events" in the logs instead of "events"
codingkarthik Mar 12, 2020
070bd19
add documentation for the processScheduledQueue function
codingkarthik Mar 12, 2020
3c85ea1
log the HTTP error in processEventQueue
codingkarthik Mar 12, 2020
28320ec
revert the Scheduled Triggers logic to as it was earlier
codingkarthik Mar 13, 2020
4c09639
fork new threads using forkImmortal instead of forkIO for ST threads
codingkarthik Mar 13, 2020
ffd52cb
remove the commented functions from Eventing/HTTP.hs
codingkarthik Mar 13, 2020
b4fd78d
refactor ExtraContext in Eventing back to ExtraLogContext
codingkarthik Mar 13, 2020
89a02a9
refactor the Eventing/HTTP file
codingkarthik Mar 13, 2020
b0b1c7c
use bracket_ to do the async stuff in event triggers
codingkarthik Mar 13, 2020
72ba58b
refactor the processEventQueue function
codingkarthik Mar 15, 2020
9ad3605
Merge remote-tracking branch 'upstream/master' into events-st-master-…
codingkarthik Mar 16, 2020
fcb03d7
undo all the unrelated js file changes
codingkarthik Mar 16, 2020
b6b8a49
remove the unused import in Eventing/HTTP.hs
codingkarthik Mar 16, 2020
2fd21dc
Merge branch 'master' into scheduled-triggers
tirumaraiselvan Mar 16, 2020
e8a50a6
refactor Duration' to AsDuration
codingkarthik Mar 17, 2020
8012d49
add a new class AsPicoseconds to avoid repetition
codingkarthik Mar 17, 2020
c3d1ac4
include the toFixedPico function in Fractional instance of TimeUnit
codingkarthik Mar 19, 2020
c3ff0a6
derive a generic instance of Hashable on TimeUnit
codingkarthik Mar 19, 2020
0e49499
refactor the AsPicoseconds class to make it more generic
codingkarthik Mar 20, 2020
a326f92
add module documentation for Hasura.Eventing.ScheduledTrigger
codingkarthik Mar 20, 2020
8e66df1
add module documentation for Hasura.Eventing.HTTP
codingkarthik Mar 20, 2020
6203791
Merge remote-tracking branch 'upstream/master' into scheduled-trigger…
codingkarthik Mar 20, 2020
bc7fcb0
add module documentation for Event Triggers
codingkarthik Mar 20, 2020
e62e730
make a polymorphic function to test absolute and calendar specs
codingkarthik Mar 24, 2020
5ab872e
Merge remote-tracking branch 'upstream/master' into scheduled-triggers
codingkarthik Mar 31, 2020
0484a01
Replace Control.Concurrent.threadDelay with our custom sleep function
lexi-lambda Apr 3, 2020
3f3e198
Fix Haddock syntax in module-level comments
lexi-lambda Apr 3, 2020
c516ab8
Declare bankruptcy on DiffTime vs NominalDiffTime
lexi-lambda Apr 7, 2020
0496b90
add module doc explaining why there are two threads for ST
codingkarthik Apr 15, 2020
096e6c5
update module doc of Event Triggers
codingkarthik Apr 15, 2020
46574a2
merge master into scheduled-triggers-1914
codingkarthik Apr 16, 2020
f6a314c
Merge branch 'master' into scheduled-triggers-1914
codingkarthik Apr 17, 2020
0e09025
Merge branch 'master' into scheduled-triggers-1914
codingkarthik Apr 17, 2020
50a3180
refactor the scheduled triggers tests
codingkarthik Apr 17, 2020
72d67c1
refactor the invocation version logic
codingkarthik Apr 17, 2020
3bb0325
write custom ToJSON instance for HTTPRespExtra
codingkarthik Apr 20, 2020
b2ccde0
fetch STs which have < 100 events for hydration
codingkarthik Apr 20, 2020
5264269
add more cron schedules in the sampleCronSchedules
codingkarthik Apr 21, 2020
49409ee
use checkExists directly instead of creating a new fn in where
codingkarthik Apr 21, 2020
aa9537c
directly return ScheduledTriggerInfo using pure
codingkarthik Apr 21, 2020
326d401
replace ST with Scheduled Triggers in test_scheduled_triggers.py
codingkarthik Apr 24, 2020
15fc4be
refactor RetryConfST to STRetryConf
codingkarthik Apr 24, 2020
275e131
refactor some fields in STRetryConf and add documentation
codingkarthik Apr 24, 2020
08e75f7
add explicit record field names to the STRetryConf type
codingkarthik Apr 24, 2020
78d05bf
throw an error when negative value is provided in STRetryConf
codingkarthik Apr 24, 2020
400af30
document the steTimeStamp field
codingkarthik Apr 24, 2020
2ec7138
add a test to create some scheduled events
codingkarthik Apr 24, 2020
1f20941
minor refactoring in the runScheduledEventsGenerator function
codingkarthik Apr 24, 2020
21618e5
document the runScheduledEventsGenerator function
codingkarthik Apr 24, 2020
0ce5763
undo the changes made by the type alias - ScheduledTriggerInfoMap
codingkarthik Apr 24, 2020
43cb4f1
add explicit case match in addSchedeledTriggerToCatalog
codingkarthik Apr 24, 2020
59413e2
remove the Event Triggers working mechanism note
codingkarthik Apr 27, 2020
58b596f
modify the module doc in the ScheduledTrigger.hs
codingkarthik Apr 27, 2020
7d1f3a6
delete the ST related tables while downgrading
codingkarthik Apr 27, 2020
1b17274
add a Note on Scheduled Event lifecycle
codingkarthik Apr 27, 2020
549b506
Merge branch 'master' into scheduled-triggers-1914
codingkarthik Apr 27, 2020
5562fdc
combine the processing and generating of the scheduled events in 1 th…
codingkarthik Apr 27, 2020
a940db2
Merge branch 'master' into scheduled-triggers-1914
codingkarthik Apr 28, 2020
e33ccf2
separate the generator and processor of STs, like earlier
codingkarthik Apr 28, 2020
9df379a
Merge branch 'master' into scheduled-triggers
codingkarthik Apr 28, 2020
463474d
Merge branch 'master' into scheduled-triggers
codingkarthik Apr 28, 2020
9e11f1b
use buildInfoMap to buildScheduledTriggers
codingkarthik Apr 29, 2020
062414b
update the scheduled triggers ScheduleConf docs
codingkarthik Apr 29, 2020
59eccf3
update the HTTP.hs module documentation
codingkarthik Apr 29, 2020
748d167
use the unit data type in the buildScheduledTriggers function
codingkarthik Apr 30, 2020
d241bb7
Merge branch 'master' into scheduled-triggers
codingkarthik Apr 30, 2020
f3193c3
Merge branch 'master' into scheduled-triggers
codingkarthik Apr 30, 2020
c6f58bd
change the timeout to 65 in the test_check_adhoc_webhook_event test
codingkarthik Apr 30, 2020
58e9429
update the scheduled triggers docs
codingkarthik Apr 30, 2020
0134b25
update the ScheduleConf doc
codingkarthik Apr 30, 2020
e26fd72
add documentation for `fetch_scheduled_events`
codingkarthik May 2, 2020
ed68451
add code block for the `fetch_scheduled_events` API
codingkarthik May 2, 2020
0eb8cd2
use offset instead of start in the code block
codingkarthik May 2, 2020
99aeac0
minor refactoring of the ScheduledTrigger DDL module
codingkarthik May 4, 2020
790d4d8
remove commented code from Cache.hs
codingkarthik May 4, 2020
c8f8f0c
modify the scheduled triggers APIs in the docs
codingkarthik May 4, 2020
b6fc939
update the index.rst with the new scheduled triggers APIs
codingkarthik May 4, 2020
f675d5a
add the fetch_scheduled_events API
codingkarthik May 5, 2020
473ba55
use CatalogScheduledTrigger to resolve a scheduled trigger
codingkarthik Apr 30, 2020
eb34934
add include_in_metadata in the ST APIs
codingkarthik Apr 30, 2020
0e14bb0
remove the track and untrack scheduled trigger APIs
codingkarthik May 4, 2020
70a6965
remove the cancel_scheduled_event API and related code
codingkarthik May 5, 2020
f0d573c
add a new column comment in the hdb_scheduled_trigger table
codingkarthik May 5, 2020
c7daedd
add index to hdb_catalog.hdb_scheduled_events on status
codingkarthik May 5, 2020
ae0932f
make a new API create_scheduled_trigger_cron
codingkarthik May 5, 2020
e6b000f
add a new API update_scheduled_trigger_cron
codingkarthik May 5, 2020
3f9e748
add a new API delete_scheduled_trigger_cron
codingkarthik May 5, 2020
5e21fff
add a new API fetch_scheduled_trigger_cron_events
codingkarthik May 5, 2020
354660d
refactor the Adhoc type to OneOff
codingkarthik May 5, 2020
d21b90b
modify the scheduled triggers test
codingkarthik May 5, 2020
4c39072
add a new table hdb_catalog.hdb_one_off_scheduled_events
codingkarthik May 5, 2020
fe0bc85
create a new API to create a one-off scheduled trigger
codingkarthik May 5, 2020
2869751
include the header_conf while creating a scheduled one-off trigger
codingkarthik May 5, 2020
1143ba3
fork a new thread to process the one-off scheduled events
codingkarthik May 5, 2020
4389e7e
fork a new thread to process the one-off scheduled events
codingkarthik May 6, 2020
d146a67
fix bug, after error status was not setting to scheduled
codingkarthik May 6, 2020
14e7fbc
refactor the processOneOffScheduledQueue function
codingkarthik May 6, 2020
46e8f27
add a haddock comment explaining the ScheduledEventType
codingkarthik May 6, 2020
e139d0e
add tests for the one-off scheduled trigger
codingkarthik May 6, 2020
0012071
add a new API fetch_scheduled_trigger_one_off
codingkarthik May 6, 2020
8befcbf
refactor ScheduledEventOneOff to ScheduledTriggerOneOff
codingkarthik May 6, 2020
028c809
refactor CreateScheduledTrigger to ScheduledTriggerMetadata
codingkarthik May 6, 2020
f18da8f
modify the Scheduled event lifecycle note to include a flow-chart
codingkarthik May 7, 2020
b9d92ee
combine processing of scheduled events and one-off scheduled triggers
codingkarthik May 7, 2020
c3cbe95
modify the scheduled triggers docs
codingkarthik May 7, 2020
bf69070
update index.rst with the new APIs
codingkarthik May 7, 2020
dc966d3
remove the word scheduled from cron scheduled trigger
codingkarthik May 7, 2020
f1c385b
remove the fetch and createScheduledEvent APIs
codingkarthik May 8, 2020
fc0af64
refactor the fields of CreateCronTrigger
codingkarthik May 8, 2020
5c4be7f
major refactoring of ScheduledTrigger to CronTrigger
codingkarthik May 8, 2020
db614e0
refactor runCreateScheduledTriggerOneOff to runCreateScheduledEvent
codingkarthik May 8, 2020
b1f9591
make the runCreateCronTrigger to upsert a cron trigger
codingkarthik May 8, 2020
c5aa1ac
refactor ScheduledEventSeed to CronEventSeed
codingkarthik May 8, 2020
56a12c2
refactor the ScheduledEventType
codingkarthik May 8, 2020
985c2d2
refactor ScheduledTriggerOneOff to StandAloneScheduledEvent
codingkarthik May 8, 2020
1527e6c
fix the scheduled triggers tests
codingkarthik May 8, 2020
10601ad
Merge branch 'master' into scheduled-triggers-1914-new-apis
codingkarthik May 8, 2020
921d8e9
update the scheduled triggers docs
codingkarthik May 8, 2020
1aa2231
update the changelog
codingkarthik May 8, 2020
78569c1
remove the schema name while deleting from hdb_table
codingkarthik May 8, 2020
fa022e6
Merge branch 'scheduled-triggers-1914-new-apis' into scheduled-trigge…
codingkarthik May 8, 2020
ca05c86
accept the templated webhook type while creating cron triggers
codingkarthik May 11, 2020
7b7a1a8
use InputWebhook instead of WebhookConf in StandAloneScheduledEvent
codingkarthik May 11, 2020
b16b1fa
use template URL in scheduled trigger's webhook
codingkarthik May 11, 2020
6c6de8d
modify the tests to have templated webhook URL
codingkarthik May 11, 2020
d99cd6a
minor refactoring of some record fields and update comments
codingkarthik May 11, 2020
92cf643
refactor runScheduledEventsGenerator to runCronEventsGenerator
codingkarthik May 11, 2020
db35f0c
Merge branch 'scheduled-triggers-1914-new-apis' into scheduled-trigge…
codingkarthik May 11, 2020
8930aa8
refactor record field names of CreateScheduledEvent and CronTriggerInfo
codingkarthik May 11, 2020
b33acf3
Merge branch 'master' into scheduled-triggers
codingkarthik May 11, 2020
d8041e1
Update docs/graphql/manual/api-reference/schema-metadata-api/schedule…
codingkarthik May 12, 2020
49d70a6
Merge branch 'master' into scheduled-triggers
codingkarthik May 12, 2020
25fef2a
run prettier (#92)
May 12, 2020
7a73358
make include_in_metadata a mandatory field
codingkarthik May 12, 2020
26852df
add the include_in_metadata while exporting even when it's false
codingkarthik May 12, 2020
9e4115d
add include_in_metadata while creating cron trigger in tests
codingkarthik May 12, 2020
f014bb8
use trigger_name instead of name while fetching cron events
codingkarthik May 12, 2020
3b06bfa
Update CHANGELOG.md
codingkarthik May 13, 2020
1c07634
Update CHANGELOG.md
tirumaraiselvan May 13, 2020
eb9f77e
Update CHANGELOG.md
tirumaraiselvan May 13, 2020
f0fd307
Merge branch 'master' into scheduled-triggers
codingkarthik May 13, 2020
3a5aaa9
Merge branch 'master' into scheduled-triggers
codingkarthik May 13, 2020
5ec4e47
Merge branch 'master' into scheduled-triggers
codingkarthik May 13, 2020
d5c3cc6
Merge branch 'master' into scheduled-triggers
codingkarthik May 13, 2020
6b339aa
use trigger_name instead of name while updating cron events
codingkarthik May 13, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .circleci/test-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,14 @@ pip3 install -r requirements.txt
mkdir -p "$OUTPUT_FOLDER/hpc"

export EVENT_WEBHOOK_HEADER="MyEnvValue"

export HGE_URL="http://localhost:8080"
export HGE_URL_2=""
if [ -n ${HASURA_GRAPHQL_DATABASE_URL_2:-} ] ; then
HGE_URL_2="http://localhost:8081"
fi
export WEBHOOK_FROM_ENV="http://127.0.0.1:5592"
export SCHEDULED_TRIGGERS_WEBHOOK_DOMAIN="http://127.0.0.1:5594"
export HASURA_GRAPHQL_STRINGIFY_NUMERIC_TYPES=true

HGE_PIDS=""
Expand Down
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

## Next release

### Scheduled Triggers

A scheduled trigger can be used to execute custom business logic based on time. There are two types of timing events: cron based or timestamp based.

A cron trigger will be useful when something needs to be done periodically. For example, you can create a cron trigger to generate an end-of-day sales report every weekday at 9pm.

You can also schedule one-off events based on a timestamp. For example, a new scheduled event can be created for 2 weeks from when a user signs up to send them an email about their experience.

<Add docs links>

(close #1914)


### Allow access to session variables by computed fields (fix #3846)

Sometimes it is useful for computed fields to have access to the Hasura session variables directly. For example, suppose you want to fetch some articles but also get related user info, say `likedByMe`. Now, you can define a function like:
Expand Down
7 changes: 3 additions & 4 deletions console/src/components/Main/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -621,11 +621,10 @@ class Main extends React.Component {
<img src={read} alt={'read'} />
</div>
<div className={styles.featuresList}>
<div className={styles.featuresTitle}>
Read Replicas
</div>
<div className={styles.featuresTitle}>Read Replicas</div>
<div className={styles.featuresDescription}>
Native Read Replica support for enhanced performance and scalability
Native Read Replica support for enhanced performance and
scalability
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,17 +190,17 @@ const RelationshipEditor = ({
disabled={!name}
>
{// default unselected option
refSchema === '' && (
<option value={''} disabled>
{'-- reference schema --'}
</option>
)}
refSchema === '' && (
<option value={''} disabled>
{'-- reference schema --'}
</option>
)}
{// all reference schema options
orderedSchemaList.map((rs, j) => (
<option key={j} value={rs}>
{rs}
</option>
))}
orderedSchemaList.map((rs, j) => (
<option key={j} value={rs}>
{rs}
</option>
))}
</select>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -727,13 +727,9 @@ const permChangePermissions = changeType => {
'_table_' +
table;

const requestMsg = capitalize(
getIngForm(changeType) + ' permissions...'
);
const requestMsg = capitalize(getIngForm(changeType) + ' permissions...');
const successMsg = 'Permissions ' + getEdForm(changeType);
const errorMsg = capitalize(
getIngForm(changeType) + ' permissions failed'
);
const errorMsg = capitalize(getIngForm(changeType) + ' permissions failed');

const customOnSuccess = () => {
if (changeType === permChangeTypes.save) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ import {
QUERY_TYPES,
} from '../../../Common/utils/pgUtils';
import { showErrorNotification } from '../../Common/Notification';
import KnowMoreLink from "../../../Common/KnowMoreLink/KnowMoreLink";
import KnowMoreLink from '../../../Common/KnowMoreLink/KnowMoreLink';
import {
getFilterQueries,
replaceLegacyOperators,
Expand Down Expand Up @@ -597,12 +597,14 @@ class Permissions extends Component {
}

let knowMoreHtml;
if(knowMoreRef) {
if (knowMoreRef) {
knowMoreHtml = (
<span className={`${styles.add_mar_left_small} ${styles.sectionStatus}`}>
<KnowMoreLink href={knowMoreRef}/>
<span
className={`${styles.add_mar_left_small} ${styles.sectionStatus}`}
>
<KnowMoreLink href={knowMoreRef} />
</span>
)
);
}

return (
Expand Down Expand Up @@ -1842,14 +1844,21 @@ class Permissions extends Component {
const backendStatus = isBackendOnly ? 'enabled' : 'disabled';
return (
<CollapsibleToggle
title={getSectionHeader('Backend only', tooltip, backendStatus, 'https://docs.hasura.io/1.0/graphql/manual/auth/authorization/permission-rules.html#backend-only-inserts')}
title={getSectionHeader(
'Backend only',
tooltip,
backendStatus,
'https://docs.hasura.io/1.0/graphql/manual/auth/authorization/permission-rules.html#backend-only-inserts'
)}
useDefaultTitleStyle
testId={'toggle-backend-only'}
>
<div
className={`${styles.editPermsSection} ${styles.display_flex}`}
>
<div className={`${styles.display_flex} ${styles.add_mar_right_mid}`}>
<div
className={`${styles.display_flex} ${styles.add_mar_right_mid}`}
>
<Toggle
checked={isBackendOnly}
onChange={() => dispatch(permToggleBackendOnly())}
Expand Down
2 changes: 1 addition & 1 deletion console/src/components/UIKit/atoms/RadioButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { StyledRadioButton } from './RadioButton';

export type RadioButtonProps = {
name: string;
}
};

export const RadioButton: React.FC<RadioButtonProps> = props => {
const { children, name } = props;
Expand Down
4 changes: 2 additions & 2 deletions console/src/components/UIKit/atoms/Typography/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export type TextProps = {
mt: keyof Theme['space'];
mr: keyof Theme['space'];
ml: keyof Theme['space'];
}
};

export const Text: React.FC<TextProps> = props => {
const { children, type, fontWeight, fontSize } = props;
Expand Down Expand Up @@ -69,7 +69,7 @@ Text.defaultProps = {
type TextLinkProps = {
underline: boolean;
color: string;
}
};

export const TextLink: React.FC<TextLinkProps> = props => {
const { children, underline } = props;
Expand Down
2 changes: 1 addition & 1 deletion docs/graphql/manual/actions/create.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.. meta::
:description: Creating Hasura actions
:keywords: hasura, docs, actions, create
:keywords: hasura, docs, actions, create

.. _create_actions:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ Args syntax
- false
- [ :ref:`HeaderFromValue <HeaderFromValue>` | :ref:`HeaderFromEnv <HeaderFromEnv>` ]
- List of headers to be sent with the webhook
* - retry_conf
- false
- RetryConf_
- Retry configuration if event delivery fails
* - replace
- false
- Boolean
Expand Down Expand Up @@ -271,3 +275,28 @@ EventTriggerColumns
:class: haskell-pre

"*" | [:ref:`PGColumn`]

.. _RetryConf:

RetryConf
&&&&&&&&&

.. list-table::
:header-rows: 1

* - Key
- required
- Schema
- Description
* - num_retries
- false
- Integer
- Number of times to retry delivery. Default: 0
* - interval_sec
- false
- Integer
- Number of seconds to wait between each retry. Default: 10
* - timeout_sec
- false
- Integer
- Number of seconds to wait for response before timing out. Default: 60
16 changes: 16 additions & 0 deletions docs/graphql/manual/api-reference/schema-metadata-api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,21 @@ The various types of queries are listed in the following table:
- 1
- Invoke a trigger with custom payload

* - :ref:`create_cron_trigger`
- :ref:`create_cron_trigger_args <create_cron_trigger_syntax>`
- 1
- Create a cron trigger

* - :ref:`delete_cron_trigger`
- :ref:`delete_cron_trigger_args <delete_cron_trigger_syntax>`
- 1
- Delete an existing cron trigger

* - :ref:`create_scheduled_event`
- :ref:`create_scheduled_event_args <create_scheduled_event_syntax>`
- 1
- Create a new scheduled event

* - :ref:`add_remote_schema`
- :ref:`add_remote_schema_args <add_remote_schema_syntax>`
- 1
Expand Down Expand Up @@ -426,6 +441,7 @@ See :ref:`server_flag_reference` for info on setting the above flag/env var.
Permissions <permission>
Computed Fields <computed-field>
Event Triggers <event-triggers>
Scheduled Triggers <scheduled-triggers>
Remote Schemas <remote-schemas>
Query Collections <query-collections>
Custom Types <custom-types>
Expand Down
Loading