Run Init Sync on the Tenant
The init sync prints a standard out that lists options for both of the dynamic configurations. Let's run an init sync for the tenant and take a look at those options in the Connection Settings page!
Last updated
The init sync prints a standard out that lists options for both of the dynamic configurations. Let's run an init sync for the tenant and take a look at those options in the Connection Settings page!
Last updated
Before you can try out your new init sync flow, you will need to put your tenant on a release based on your new code. To do that follow all the steps in Check the Customized Connection Settings Page.
Once your tenant is on that new release, you might take a look at its Connections Settings page. It still says Placeholder for the two dynamic configs. This is because we haven't yet run the new init sync for this tenant.
Navigate to your integration's tenant by clicking Integrations from the side bar > the Unpublished tab > the card for your Pokémon of the Day integration > the Tenants tab > the row for your tenant.
Click the arrow on Sync Now > Init Sync. This will kick off an init sync for your tenant, which will appear in the Activity list at the bottom of the page.
If you're curious you can click the icon in the run's Status column. This will display the Activity Detail page for the run. The log there should look just like the logs for the init syncs you ran locally during development (with the exception that the context logged out has far more information now).
You can navigate back to the Tenant Detail page by clicking the tenant's name at the top of the Activity Detail page.
Once the init sync run has completed click Settings. This will display the Connection Settings page for the tenant.
Placeholder is no longer an option for either the Pokémon Type config or the Slack User config.
Choose one of the Pokémon types fetched from the PokéAPI.
Choose yourself as the person who will receive the Pokémon message of the day. Selecting yourself is just for development purposes. When the Academy's UX admin sets up a tenant for each Pokémon trainer they will select the appropriate trainer and their requested Pokémon type.
Click Save Changes. This will close the Connections Settings page to display the Tenant Detail page.
Click the arrow on Sync Now > Normal Sync. This will kick off a normal sync for your tenant, which will appear in the Activity list at the bottom of the page. Before the run is complete you should get a Slack message about the Pokémon of the Day.
You may have noticed that the Pokémon in that message was just the one with the next ID, and not necessarily of the type you just selected. This is because pokemonSync
isn't accessing these new configurations.
Click the icon in the run's Status column. This will display the Activity Detail page for the run.
At the top of the logs you should see the config object now has the new configs!
Let's update pokemonSync
so it makes use of those new configs!