nkowaokwu / igbo_api

An API exposing Igbo words, definitions, and more
https://igboapi.com
Apache License 2.0
316 stars 141 forks source link

fix: filter out examples that are not created from Igbo API Editor Platform #775

Closed ijemmao closed 8 months ago

ijemmao commented 8 months ago

Motivation and Context

Now that we are ingesting data from other sources, we want to prevent this collected data from being presented to consumers of the Igbo API or Nkọwa okwu because this data hasn't been prepared to be publicly released.

Describe your changes

While querying for and filtering example sentences, we will check the new source field to see if it doesn't exist or if it is set to have the source of the Igbo API Editor Platform. If it doesn't come from the Igbo API Editor Platform, we will not show these example sentences to the public.

How Has This Been Tested?

Create new unit tests and ran locally.

Screenshots (if appropriate):

N/A