Skip to content

Update docs to deprecate V1 and add basic V2 job#229

Closed
samsondav wants to merge 12 commits intomainfrom
chore/ch12971
Closed

Update docs to deprecate V1 and add basic V2 job#229
samsondav wants to merge 12 commits intomainfrom
chore/ch12971

Conversation

@samsondav
Copy link
Copy Markdown
Contributor

No description provided.

@netlify
Copy link
Copy Markdown

netlify Bot commented Jul 16, 2021

✔️ Deploy Preview for dreamy-villani-0e9e5c ready!

🔨 Explore the source changes: 25dde27

🔍 Inspect the deploy log: https://app.netlify.com/sites/dreamy-villani-0e9e5c/deploys/6112e99297b0290007a0bf1a

😎 Browse the preview: https://deploy-preview-229--dreamy-villani-0e9e5c.netlify.app

@samsondav samsondav force-pushed the chore/ch12971 branch 2 times, most recently from de218b5 to c093093 Compare July 16, 2021 13:27
Copy link
Copy Markdown
Contributor

@alexroan alexroan left a comment

Choose a reason for hiding this comment

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

Very informative docs, nice work!

We could structure the pages a little better to reduce the cognitive load in finding what readers need. Some context, maybe an intro page explaining the two formats and what changed, will go a long way to improving the information architecture.

Comment thread _data/navigation.js Outdated
{ url: '/docs/initiators/', title: 'Initiators' },
{ url: '/docs/jobs/', title: 'Jobs' },
{ url: '/docs/tasks/', title: 'Tasks' },
{ url: '/docs/job-specifications/', title: 'Job Specifications [DEPRECATED]' },
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think there's a better way we can structure the deprecated pages. Maybe version 1 and 2 parent pages, with 2 being the default?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

What is a parent page?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Here's an example of one: https://docs.chain.link/docs/reference-contracts/

Take a look at the menu item, it acts as a parent to sub-pages.

Comment thread docs/Oracle Jobs/jobs.md Outdated
Comment thread docs/Oracle Jobs/jobs.md Outdated
Comment thread docs/Oracle Jobs/jobs.md Outdated
medianize_data -> submit_to_ea
```

![DAG Example](./dag_example.png)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This image isn't showing on my local or the generated preview. I believe assets like this are stored in _src/images/.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good catch

Comment thread docs/Oracle Jobs/tasks.md Outdated
Copy link
Copy Markdown
Contributor

@PatrickAlphaC PatrickAlphaC left a comment

Choose a reason for hiding this comment

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

This looks great. As we learn more we will probably update something here. We will probably want to update our blogs on this as well with a note about the change.

ie: https://blog.chain.link/build-and-use-external-adapters/
https://www.youtube.com/watch?v=65NhO5xxSZc
https://www.youtube.com/watch?v=4i75Dqbhjvw

Please ping me to change these when this change goes live

@samsondav samsondav requested a review from PatrickAlphaC July 21, 2021 13:30
Comment thread docs/Oracle Jobs/jobs.md Outdated
Comment thread docs/Oracle Jobs/jobs.md Outdated
Comment thread docs/Oracle Jobs/jobs.md Outdated
```

- `contractAddress`: the address of the FluxAggregator contract that manages the feed.
- `precision`: the number of decimal places to be associated the integer value submitted on-chain.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ditto - remove

Comment thread docs/Oracle Jobs/jobs.md Outdated
confirmations = 6
publicKey = "0x79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F8179800"
observationSource="""
getrandomvalue [type=vrf];
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this might change quite soon, I'd hold off on merging this until we have tested it using ethtx tasks

Comment thread docs/Oracle Jobs/jobs.md Outdated
### VRF

```toml
uuid = "123e4567-e89b-12d3-a456-426655440000"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this is now called externalJobID and is a universal parameter across all V2 specs. Probably deserves its own little blurb something like

The externalJobID is a optionally user-specified way to deterministically provide an ID of a job. Say for example you want to run the same directrequest job on two different chainlink nodes which have different bridge names. Although the actually spec contents differ slightly, you can use the same externalJobID on both, specify that in your on-chain requests and both nodes will pick it up. If you do not provide one, one will be generated by the node.

@PatrickAlphaC
Copy link
Copy Markdown
Contributor

Looks like we need to add some migration examples in here.

@DmitryDao is this something you can do? Show JSON jobs and what their TOML equivalent jobs look like? If no one can, I can take this, but I'd much rather someone else if possible. Perhaps @ZakAyesh? How much node experience do you have?

@thisguy002
Copy link
Copy Markdown

thisguy002 commented Jul 22, 2021

Looks like we need to add some migration examples in here.

@DmitryDao is this something you can do? Show JSON jobs and what their TOML equivalent jobs look like? If no one can, I can take this, but I'd much rather someone else if possible. Perhaps @ZakAyesh? How much node experience do you have?

I haven't really worked with TOML but I know there are converters for that. Just let me know which migration samples are you talking about and I'll see if I can do something about them. I haven't been working with nodes for a while now though so I might be out of date on the recent updates that are mentioned in these docs.

Comment thread _data/navigation.js Outdated
{ url: '/docs/jobs/', title: 'Jobs' },
{ url: '/docs/tasks/', title: 'Tasks' },
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Maybe we should call them Jobs V2/Tasks V2 and the old ones Jobs V1/Tasks V1 (at least in the navbar) temporarily? This will help people can move over gradually. Thoughts?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yup that seems reasonable

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thinking about this more, I suspect it's likely to lead to more confusion. Since we have various v1/v2 of other things like ocr v1/v2 or VRF v1/v2. Better to keep the language here as it is

Comment thread docs/Oracle Jobs/job-specifications.md Outdated
Comment on lines +13 to +14
Please refer to the [V2 jobs page](/docs/jobs) for guidance on how to do this.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Do we think we should create a migration guide or tutorial instead of keeping deprecated docs? This is a big deal and people should be aware of it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I am creating a migration guide to be included in this PR.

Comment thread docs/Oracle Jobs/jobs.md Outdated
Comment on lines +271 to +253

![DAG Example](dag_example.png)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This should be:
DAG Example

And can we create a task for the design team to create this image in the our brand style?

Copy link
Copy Markdown
Contributor Author

@samsondav samsondav Aug 2, 2021

Choose a reason for hiding this comment

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

I can't figure out how to get this image to work.

Comment thread docs/Oracle Jobs/tasks.md Outdated
Comment on lines +9 to +10
## What is a Task?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think the new version of tasks has to be updated on a few other pages:

Comment thread docs/Oracle Jobs/jobs.md Outdated
Comment on lines +62 to +63
### Direct request (eth log)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What's the replacement for RunLog in a new version?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This job type replaces both runlog and ethlog. There's a discussion around whether we rename it to ethlog as thats just a better/more descriptive name than directrequest

Comment on lines 6 to 7
whatsnext: {"Introduction to External Initiators":"/docs/external-initiators-introduction/"}
---
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Do we keep the External Initiators in V2? I mean not only here but all of the relevant pages/docs.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes External Initiators still exist and work with V2 jobs, they probably need a documentation overhaul though.

@spooktheducks
Copy link
Copy Markdown
Contributor

Review pls

@StephenFluin
Copy link
Copy Markdown
Contributor

Closed via #292. Thank you for all of the excellent new content!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants