Code Monkey home page Code Monkey logo

codelists's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

yohannaloucheur

codelists's Issues

Switch to nuxtjs

Vuepress is cool but it already seems like we’re running into limitations. Might be good to give nuxtjs a try.

Add FR translations for withdrawn codes

E.g. 230xx:

codelists/api/xml/Sector.xml

Lines 1716 to 1885 in ed706f9

<codelist-item status="withdrawn">
<code>23010</code>
<name>
<narrative>Energy policy and administrative management</narrative>
</name>
<description>
<narrative>Energy sector policy, planning and programmes; aid to energy ministries; institution capacity building and advice; unspecified energy activities including energy conservation.</narrative>
</description>
<category>230</category>
</codelist-item>
<codelist-item status="withdrawn">
<code>23020</code>
<name>
<narrative>Power generation/non-renewable sources</narrative>
</name>
<description>
<narrative>Thermal power plants including when heat source cannot be determined; combined gas-coal power plants.</narrative>
</description>
<category>230</category>
</codelist-item>
<codelist-item status="withdrawn">
<code>23030</code>
<name>
<narrative>Power generation/renewable sources</narrative>
</name>
<description>
<narrative>Including policy, planning, development programmes, surveys and incentives. Fuelwood/ charcoal production should be included under forestry (31261).</narrative>
</description>
<category>230</category>
</codelist-item>
<codelist-item status="withdrawn">
<code>23040</code>
<name>
<narrative>Electrical transmission/ distribution</narrative>
</name>
<description>
<narrative>Distribution from power source to end user; transmission lines.</narrative>
</description>
<category>230</category>
</codelist-item>
<codelist-item status="withdrawn">
<code>23050</code>
<name>
<narrative>Gas distribution</narrative>
</name>
<description>
<narrative>Delivery for use by ultimate consumer.</narrative>
</description>
<category>230</category>
</codelist-item>
<codelist-item status="withdrawn">
<code>23061</code>
<name>
<narrative>Oil-fired power plants</narrative>
</name>
<description>
<narrative>Including diesel power plants.</narrative>
</description>
<category>230</category>
</codelist-item>
<codelist-item status="withdrawn">
<code>23062</code>
<name>
<narrative>Gas-fired power plants</narrative>
</name>
<description>
<narrative/>
</description>
<category>230</category>
</codelist-item>
<codelist-item status="withdrawn">
<code>23063</code>
<name>
<narrative>Coal-fired power plants</narrative>
</name>
<description>
<narrative/>
</description>
<category>230</category>
</codelist-item>
<codelist-item status="withdrawn">
<code>23064</code>
<name>
<narrative>Nuclear power plants</narrative>
</name>
<description>
<narrative>Including nuclear safety.</narrative>
</description>
<category>230</category>
</codelist-item>
<codelist-item status="withdrawn">
<code>23065</code>
<name>
<narrative>Hydro-electric power plants</narrative>
</name>
<description>
<narrative>Including power-generating river barges.</narrative>
</description>
<category>230</category>
</codelist-item>
<codelist-item status="withdrawn">
<code>23066</code>
<name>
<narrative>Geothermal energy</narrative>
</name>
<description>
<narrative/>
</description>
<category>230</category>
</codelist-item>
<codelist-item status="withdrawn">
<code>23067</code>
<name>
<narrative>Solar energy</narrative>
</name>
<description>
<narrative>Including photo-voltaic cells, solar thermal applications and solar heating.</narrative>
</description>
<category>230</category>
</codelist-item>
<codelist-item status="withdrawn">
<code>23068</code>
<name>
<narrative>Wind power</narrative>
</name>
<description>
<narrative>Wind energy for water lifting and electric power generation.</narrative>
</description>
<category>230</category>
</codelist-item>
<codelist-item status="withdrawn">
<code>23069</code>
<name>
<narrative>Ocean power</narrative>
</name>
<description>
<narrative>Including ocean thermal energy conversion, tidal and wave power.</narrative>
</description>
<category>230</category>
</codelist-item>
<codelist-item status="withdrawn">
<code>23070</code>
<name>
<narrative>Biomass</narrative>
</name>
<description>
<narrative>Densification technologies and use of biomass for direct power generation including biogas, gas obtained from sugar cane and other plant residues, anaerobic digesters.</narrative>
</description>
<category>230</category>
</codelist-item>
<codelist-item status="withdrawn">
<code>23081</code>
<name>
<narrative>Energy education/training</narrative>
</name>
<description>
<narrative>Applies to all energy sub-sectors; all levels of training.</narrative>
</description>
<category>230</category>
</codelist-item>
<codelist-item status="withdrawn">
<code>23082</code>
<name>
<narrative>Energy research</narrative>
</name>
<description>
<narrative>Including general inventories, surveys.</narrative>
</description>
<category>230</category>
</codelist-item>

Once fixed, this should be sent as a PR upstream.

Monitor when scraped and IATI versions of codelists differ

Once we have the scrapers outputting to a repo, we can have a job/tool that calls csvdiff, xmldiff etc to monitor when the scraped and the IATI version differ - and alert us.

Bonus points if this was output to a file that we could suck into a one page traffic light dashboard.

Even more bonus points if it was automatically tweeted ala IATI canary but for codelists.

/via @matmaxgeds.

Add versioning

In order to add embedded codelists it would be useful/essential to have some form of versioning. Vuepress doesn't seem to have this as of Nov 2019 but there is an open issue on it with active discussion which links here and here as two options. I also wonder if we couldn't 'cheat' by using subfolders in /docs, and then using hierarchical/collapsible sub menus.....would mean much duplication, but only visible in the UI if you expanded multiple IATI version menus at the same time so probably acceptable?

Also, my instinct would be to version everything, even if we just give some of them the version 'current' for now, as I think it would help a lot of people if some of the currently non-versioned codelists were versioned by date e.g. you could pick a version of a non-embedded codelist that matched the published date of the IATI data you were using it with as I suspect this might increasingly be a problem with using older IATI data.

Include metadata about each code

Include other helpful information e.g.

  • whether a code has been withdrawn
  • whether a code is recommended to be used (e.g. along lines of budget identifier guidance)
  • mapping files to equivalent / recommended new codes when a code is withdrawn

/via @markbrough.

Search bar only searches codelist titles

The search bar is v. cool, but I didn't realise when initially trying that it only searches the titles (although the autocomplete is cool and really helped me to realise this, I started by searching for a word where there was no autocomplete so I thought search was just broken).

My prefered option would be to also have the search include the codelist entries.....because often I know the entry I want, and I am searching for the codelist that it is on (otherwise I would just use the menu on the LHS if I know the codelist name already).

Quick fix....rename to 'codelist name search' from 'search'

Unique URLs for individual codes

It would be good to be able to link to an individual code, rather than just a codelist.

This could mean generating a page per code, or it could be done in javascript, or using page anchors.

null values in JSON descriptions

These are caused by the self-closing narratives elements e.g.

<codelist-item status="active">
<code>15137</code>
<name>
<narrative>Prisons</narrative>
<narrative xml:lang="fr">Prisons</narrative>
</name>
<description>
<narrative/>
<narrative xml:lang="fr"/>
</description>
<category>151</category>
</codelist-item>

Although it might be reasonable to call this a bug with the XML, I think it would be sensible to fix the build scripts to deal with this (because I suspect fixing this in XML would cause our XML to diverge quite a long way from upstream).

Translate all content into French

Some translations are in place, but it would be good to translate all the app-specific stuff (I guess we probably shouldn’t do codelist translations?)

Giant list of codelists in gen.sh is bad

I don’t like this:

codelists=("AidType-category" "AidType" "CollaborationType" "Country" "CRSChannelCode" "Currency" "EarmarkingCategory" "FileFormat" "FinanceType-category" "FinanceType" "FlowType" "Language" "LocationType-category" "LocationType" "OrganisationRegistrationAgency" "PolicyMarker" "PolicySignificance" "Region" "Sector" "SectorCategory" "UNSDG-Goals" "UNSDG-Targets")

It would be better to use the codelist metadata. Relevant codelists have category/narrative equal to "Replicated".

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.