WikidataComplete / wikidatacomplete-backend

apis for wikidatacomplete
MIT License
2 stars 1 forks source link

Add meta_information and feedback fields in Fact table #27

Closed lalit97 closed 2 years ago

lalit97 commented 2 years ago

As per discussion with Andreas and Guo last to last week, we need 2 new fields in the table for implementing accept, and reject APIs and showing question text.

(1) feedback field for collecting feedback from editors default = None can be None/True/False

correct/ published (old schema) --> feedback (new schema) (correct or published fields from the old schema should be mapped with feedback in the new schema for the existing fact records)

published = True -> Feedback = True (current date) published = False -> Feedback = False (current date) published = None -> Feedback = None (we have not received feedback yet. date = empty)

example feedback = {"feedback_date": 01-01-22, "feedback": boolean, "user_id": wdtId}

(2) question (old schema) --> meta_information (new schema)

meta_information = { # replacement for question field "question": "" # current, donations can have anything }

lalit97 commented 2 years ago

taking like this and dropping the user_id key since it is already present in the table feedback = {"feedback_date": 01-01-22, "feedback": boolean}

lalit97 commented 2 years ago

closed with #35