Skip to content

Specs for exporting#2063

Open
Achiket123 wants to merge 1 commit intotheopenlane:mainfrom
Achiket123:feature/export-as-docuemnts-spec
Open

Specs for exporting#2063
Achiket123 wants to merge 1 commit intotheopenlane:mainfrom
Achiket123:feature/export-as-docuemnts-spec

Conversation

@Achiket123
Copy link

Hey @golanglemonade please review these and please tell me if there is any thing else i need to change.
Thankyou.

@@ -0,0 +1,586 @@
// Code generated by 'entc generate'. DO NOT EDIT.
Copy link
Member

Choose a reason for hiding this comment

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

@Achiket123 this shouldn't be committed; it is part of the generate process but should be automatically removed when entc is complete

Comment on lines -115 to 121
rule.AllowQueryIfSystemAdmin(),
policy.CheckOrgReadAccess(),
),
policy.WithMutationRules(
policy.AllowCreate(),
),
policy.WithOnMutationRules(ent.OpUpdate|ent.OpUpdateOne|ent.OpDelete|ent.OpDeleteOne,
rule.AllowMutationIfSystemAdmin(),
policy.CheckOrgWriteAccess(),
),
Copy link
Member

Choose a reason for hiding this comment

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

The privacy rules shouldn't need to be changed for this; csv already works properly as is.

The job is setup with a system-admin token and uses user impersonation to pull the data the user has access to.

Copy link
Member

@golanglemonade golanglemonade left a comment

Choose a reason for hiding this comment

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

The addition of the export types look good; comments on a few other things that shouldn't be updated/included.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants