Skip to content
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

Improve modref docs #1256

Merged
merged 15 commits into from
Aug 3, 2023
Merged

Improve modref docs #1256

merged 15 commits into from
Aug 3, 2023

Conversation

sirlensalot
Copy link
Contributor

Just docs, no downstream impacts or code coverage requirements.

Copy link
Member

@rsoeldner rsoeldner left a comment

Choose a reason for hiding this comment

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

These changes provide value and make it much better to read.

I'm not sure about the _TODO sections as they require future efforts, which might lead to inconsistent documentation.

docs/en/pact-reference.md Show resolved Hide resolved
docs/en/pact-reference.md Outdated Show resolved Hide resolved
docs/en/pact-reference.md Outdated Show resolved Hide resolved
docs/en/pact-reference.md Outdated Show resolved Hide resolved
docs/en/pact-reference.md Outdated Show resolved Hide resolved
docs/en/pact-reference.md Outdated Show resolved Hide resolved
docs/en/pact-reference.md Show resolved Hide resolved
docs/en/pact-reference.md Outdated Show resolved Hide resolved
@sirlensalot
Copy link
Contributor Author

@rsoeldner @jwiegley I rewrote a lot of the sections with code examples and removed the TODOs. I do mention pinned modrefs as a possible future feature, and expanded the vuln description. Do you mind re-reviewing now?

@rsoeldner
Copy link
Member

rsoeldner commented Jul 31, 2023

Are the rst files automatically generated or hand curated? It looks like the last commits special modifications.

@sirlensalot
Copy link
Contributor Author

Are the rst files automatically generated or hand curated? It looks like the last commits special modifications.

Automatically (manually triggered) -- docs/build.sh

docs/en/pact-reference.md Outdated Show resolved Hide resolved
and should not be confused with more object-oriented polymorphism like that found
with Java classes or Typescript types. Modules cannot "extend" one another, they
can only offer operations that match some interface specification, and interfaces
themselves cannot extend some other interface.
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is a much clearer paragraph now 👍

directly call `pay-fee`. Thus a malicious actor can craft a version of `collect`
that can directly call `pay-fee` as many times as they like.
The problem with the above code is that the `with-capability` call happens
_before_ the calls to the modref operations, such that while the foreign module
Copy link
Contributor

Choose a reason for hiding this comment

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

I like the 'foreign module' terminology.

Copy link
Contributor

@thomashoneyman thomashoneyman left a comment

Choose a reason for hiding this comment

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

Wonderful!

sirlensalot and others added 2 commits August 2, 2023 18:35
Co-authored-by: Thomas Honeyman <hello@thomashoneyman.com>
Copy link

@EnoF EnoF left a comment

Choose a reason for hiding this comment

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

Nice!

@sirlensalot sirlensalot merged commit 63ac16f into master Aug 3, 2023
@sirlensalot sirlensalot deleted the slp/modrefs-refdocs branch August 3, 2023 12:20
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.

5 participants