demos-for-functions icon indicating copy to clipboard operation
demos-for-functions copied to clipboard

Feat implement generate gdpr export python

Open und1n3 opened this issue 3 years ago • 5 comments

PR for the implementation in Python of the gdpr export function (issue: https://github.com/appwrite/appwrite/issues/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

und1n3 avatar Oct 15 '21 18:10 und1n3

@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

und1n3 avatar Oct 25 '21 16:10 und1n3

@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 🙂

christyjacob4 avatar Nov 28 '21 13:11 christyjacob4

@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.

und1n3 avatar Nov 30 '21 12:11 und1n3

@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

christyjacob4 avatar Dec 19 '21 17:12 christyjacob4

@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)

und1n3 avatar Dec 20 '21 22:12 und1n3