Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Automated testing for tutorials #371

Open
steve-chavez opened this issue Nov 29, 2020 · 3 comments
Open

Automated testing for tutorials #371

steve-chavez opened this issue Nov 29, 2020 · 3 comments

Comments

@steve-chavez
Copy link
Member

steve-chavez commented Nov 29, 2020

Just saw this: http://www.haskellforall.com/2020/11/how-to-use-nixos-for-lightweight.html

Really interesting, automated testing with Nix for tutorials. Could be a future enhancement for the docs.

@wolfgangwalther
Copy link
Member

That looks cool, I agree. I skimmed through the article and am I confused by the conclusion:

The noinherit setting prevents the authenticator user from automatically assuming all permissions associated with the web_anon user. Instead, the authenticator user has to explicitly use the SET ROLE command to assume such permissions, and we can verify that at the database prompt:
[...]
Mystery solved! We can test our hypothesis by changing that noinherit to inherit:

That doesn't make sense to me. We are using SET ROLE and definitely want NOINHERIT. Or not? Is something still wrong with the tutorial right now?

@steve-chavez
Copy link
Member Author

We are using SET ROLE and definitely want NOINHERIT

Yes, I think so too.

Is something still wrong with the tutorial right now?

You know I'm not sure 😮. The blog post has a point in that, I haven't run the tutorial for a while.

@steve-chavez
Copy link
Member Author

Perhaps the NOINHERIT issue is related to this recent comment: PostgREST/postgrest#989 (comment)

(Just noticed that that points to our auth page, which is outdated)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants