Incorrect documentation about server operations
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- ruby
- Domain
- documentation
Research direction
Open the Server Operations section at the linked documentation page and compare its validate example with the working alternatives described in the issue. Update the example so the page no longer shows the non-working form; done means the documented validation example reflects a working alternative.
Written by the indexing model from the issue text.
Description
On this page: https://docs.hyperstack.org/dsl-isomorphic/hyper-operation#server-operations
there is this example code snippet:
validate { raise Hyperstack::AccessViolation unless params.acting_user.admin? }
That doesn't seem to work properly. One working alternative is:
validate { params.acting_user.admin? }
Another alternative:
validate { params.acting_user.admin? || raise Hyperstack::AccessViolation }
- Dominant language
- JavaScript
- Stars
- 538
- Forks
- 41
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from hyperstack-org/hyperstack
-
enhancement needs doc
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
hyperstack-org/hyperstack#359 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
hyperstack-org/hyperstack#457 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
hyperstack-org/hyperstack#456 ·
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
hyperstack-org/hyperstack#455 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
hyperstack-org/hyperstack#454 · 1 comment ·
All issues in hyperstack-org/hyperstack
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·