Giter VIP home page Giter VIP logo

Comments (4)

damianooldoni avatar damianooldoni commented on August 16, 2024 1

Nice to see this @niconoe! 🥳
About filtering, I think it's better to filter as much as possible in the query and that only tests are performed from our side. This will make things easier to be reviewed also (if we doubt which data we used months ago, checking the download webpage will be easier). Or am I missing something?

from gbif-alert.

niconoe avatar niconoe commented on August 16, 2024

Update: I implemented the --source-dwca option (will make the script more flexible but also make testing a bit easier).

Things be be tested (to be refined):

  • that we can import an existing file with --source-dwca
  • that a correct request is sent to GBIF if we're not using the --source-dwca option
  • that the maintenance mode is correctly set and released (blocked by #22)
  • basic import works: correct number of occurrences
  • basic import works: correct values for the occurrence records
  • basic import works: a new DataImport is created
  • basic import works: DataImport values are correct
  • previous occurrences (replaced or not!) are deleted
  • that some filtering is applied (absence records, no date, no location, ...)
  • that entities linked to occurrences are properly moved to the new occurrence
  • atomicity (see #62)
  • emails are sent reporting the status
  • raw values (strings) are trimmed
  • ...

from gbif-alert.

niconoe avatar niconoe commented on August 16, 2024

Thanks @damianooldoni, very good point.

I can't guarantee that there will always be a GBIF filter available to suit our needs (in that case, we'll also need to keep a lighter filtering stage at import stage), but indeed the better approach is to filter as much as possible at the "generate download" step. I'll create a new issue to focus on this point (this one is primarily for the unit tests of the import mechanism).

from gbif-alert.

niconoe avatar niconoe commented on August 16, 2024

I think all was covered a long time ago.

from gbif-alert.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.