Skip to content
This repository has been archived by the owner on Jul 16, 2022. It is now read-only.

Feat implement generate gdpr export python #232

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

und1n3
Copy link

@und1n3 und1n3 commented Oct 15, 2021

PR for the implementation in Python of the gdpr export function (issue: appwrite/appwrite#1904 )

  • What does it do?
    This function finds all documents in all collections where the ID of the user who executed the function is mentioned and generates a CSV file that is saved to Appwrite Storage with user id and timestamp as the file name.

  • How has it been tested?
    Tested using the docker image provided and following the steps indicated in the documentation.

  • Mandatory GIF
    gif

Copy link
Member

@PineappleIOnic PineappleIOnic left a comment

Choose a reason for hiding this comment

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

Could you please post a screenshot of the execution working?

@und1n3
Copy link
Author

und1n3 commented Oct 25, 2021

@PineappleIOnic

First of all, I've created some collections with documents in the localhost, as it can be seen in the images:

image
image

Next, after installing the requirements in the requirement.txt file, this command has been executed:
image

And finally the following file is obtained:
image
image

@christyjacob4
Copy link
Member

@und1n3 Thanks for sharing your explanation with us. But we need you to execute this function using the Appwrite console and share those screenshots with us 🙂

@und1n3
Copy link
Author

und1n3 commented Nov 30, 2021

@christyjacob4 I hope this is what you requested:

On the Appwrite Console, create a new Python function and name it (for example, in this case gdpr_export)
image
Deploy a new tag following the instructions in the ReadMe file
image

Set the Settings in the following manner changing the variables to match your own status:
image

Now you can execute the function.

@christyjacob4
Copy link
Member

@und1n3 This isn't what I meant. Please press the "Execute Now" button and share the logs from the Logs tab

Screenshot 2021-12-19 at 9 27 43 PM

We'd like to see a successful execution with the console output to verify that your code is actually working

@und1n3
Copy link
Author

und1n3 commented Dec 20, 2021

@christyjacob4 I hope now this is what you asked for.

image
image
image
image

(Now I change the code adding a print in order to see the log)

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

Successfully merging this pull request may close these issues.

3 participants