Giter Site home page Giter Site logo

rgeimer / jira-spec-artifacts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hl7/jira-spec-artifacts

0.0 0.0 0.0 9.75 MB

Manages the artifacts, pages and other lists associated with all HL7 projects managed through JIRA feedback projects

Batchfile 0.19% XSLT 99.81%

jira-spec-artifacts's Introduction

JIRA-Spec-Artifacts

This project manages the artifacts, pages, and other lists associated with all HL7 projects managed through JIRA feedback projects.

Read more about it here: https://confluence.hl7.org/display/HL7/Configuring+Specification+Feedback

To make pull requests against this project, create a fork in your personal Github space and submit a pull request from there. (Most users will not have permission to create branches directly within this project.)

Source content is found in the xml folder:

  • xml/_workgroups.xml - maintains the lists of all work groups that can take responsibility for JIRA feedback items.
  • xml/_families.xml - maintains the list of product families.
    • Note: The 'key' attribute must match the JIRA project prefix for that family.
  • xml/SPECS_???.xml - lists what specifications are part of a product family.
    • This file should only be edited by the product director responsible the family.
    • The ??? portion of the filename must match one of the keys specified in xml/_families.xml - and one of these files MUST exist for each family!
  • The remaining files (e.g. xml/FHIR-core.xml) document the artifacts and pages associated with each specification.
    • The filenames have the format [family key]-[specification-key].xml.
    • These files should be maintained in a manner consistent with the artifacts and pages defined in the specification.
    • For some specifications, alignment will be checked as part of the specification publication process.
    • Specification files are maintained independently (rather than as part of the SPECS files) to allow independent maintenance.

Each type of XML file has a corresponding schema in the schemas folder. The xml/_workgroups.xml file is also converted to a schema to aid validation.

The json files used by the Jira Elements Connect (formerly nFeed) plugin to manage dropdowns are auto-generated into the json folder. There is one file for each product family plus a single "combined" file that covers all specifications and is used by the ballot projects None of these files should be manipulated directly as they'll be overwritten. An additional file called tools/SPECS.xml is used to help ensure that keys aren't accidentally deleted or changed.

NOTE: any key used by any Jira tracker items must NEVER be removed or changed. Removal of other keys should be handled by an administrator.

Adding a New Spec Artifact

When building a new IG, you may encounter a warning in your qa.html that looks like this:

The jira specification file appears to be out of date with the versions, artifacts and pages 
currently defined in the IG.  A proposed revised file to be reviewed and, if appropriate, 
submitted as a pull request against the XML folder in https://github.com/HL7/JIRA-Spec-Artifacts.

To address this, you must make sure that:

  • You have an entry defined in the proper xml/SPECS-???.xml file.
    • For example, if you are adding the foo spec to FHIR, you would add an entry in the xml/SPECS-FHIR.xml file that looked like this:
      <specification key="foo" name="The Foo FHIR Project"/>
  • Your spec file appears in the xml folder.
    • For example, if you are adding the foo FHIR spec, you would create xml/FHIR-foo.xml and populate it with something like this:
      <?xml version="1.0" encoding="UTF-8"?>
      <specification
          gitUrl="https://github.com/HL7/foo"
          url="http://hl7.org/fhir/foo"
          ciUrl="http://build.fhir.org/ig/HL7/foo"
          defaultWorkgroup="fhir-i"
          defaultVersion="1.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:noNamespaceSchemaLocation="../schemas/specification.xsd"
      >
        <version code="1.0"/>
        <artifactPageExtension value="-definitions"/>
        <artifactPageExtension value="-examples"/>
        <artifactPageExtension value="-mappings"/>
        <artifact name="Example" key="Foo-example" id="Foo/example"/>
        <page name="(NA)" key="NA"/>
        <page name="(many)" key="many"/>
        <page name="Table of Contents" key="toc"/>
        <page name="Home" key="index"/>
        <page name="Artifacts Summary" key="artifacts"/>
        <page name="(profiles)" key="profiles" deprecated="true"/>
        <page name="The Foo FHIR Project" key="foo" url="foo" deprecated="true"/>
      </specification>

It is recommended that you create a new branch (in this example, you might call it add-foo).

Once your files are added to your branch, please also confirm that your new artifacts are not causing any new build errors or warnings. A workflow will run against you branch for each commit and the output will be available here (update your branch name in the link): https://github.com/HL7/JIRA-Spec-Artifacts/actions?query=branch%3Aadd-foo

screenshot

Finally, when you have built your IG using the publisher locally, it may emit a generated artifact xml file for you to add to this repo. So, if you have that file in your build directory, you can add your generated xml to this repo without having to write one manually.

Building

This JSON artifacts of this project can be built manually on the command line like this:

bash $> java -jar ./tools/ant/ant-launcher.jar
Buildfile: ~/code/JIRA-Spec-Artifacts/build.xml

validate:
     [xslt] Processing ~/code/JIRA-Spec-Artifacts/xml/_workgroups.xml to ~/code/JIRA-Spec-Artifacts/schemas/workgroups.xsd
     [xslt] Loading stylesheet ~/code/JIRA-Spec-Artifacts/tools/buildWGschema.xslt

genJson:
    [mkdir] Created dir: ~/code/JIRA-Spec-Artifacts/json
    [mkdir] Created dir: ~/code/JIRA-Spec-Artifacts/tools/temp
     [xslt] Processing ~/code/JIRA-Spec-Artifacts/xml/_families.xml to ~/code/JIRA-Spec-Artifacts/json/families.json
     [xslt] Loading stylesheet ~/code/JIRA-Spec-Artifacts/tools/xmlToJson.xslt
     [xslt] Processing ~/code/JIRA-Spec-Artifacts/xml/_workgroups.xml to ~/code/JIRA-Spec-Artifacts/json/workgroups.json
     [xslt] Loading stylesheet ~/code/JIRA-Spec-Artifacts/tools/xmlToJson.xslt
      [get] Getting: https://hl7.github.io/JIRA-Spec-Artifacts/SPECS.xml
      [get] To: ~/code/JIRA-Spec-Artifacts/tools/temp/SPECS.xml
     [xslt] Processing ~/code/JIRA-Spec-Artifacts/xml/_families.xml to ~/code/JIRA-Spec-Artifacts/json/SPECS.json
     [xslt] Loading stylesheet ~/code/JIRA-Spec-Artifacts/tools/buildSpecJSON.xslt

test:

BUILD SUCCESSFUL
Total time: 2 seconds
bash $> 

Automatic Deployments

There is a GitHub Action defined to automatically build and deploy the JSON files from the master repo into the gh-pages branch upon every commit to the master branch. For this to work, a deployment ssh key has been defined and added to the repository settings. You must be an admin of the repo to make changes to this key.

jira-spec-artifacts's People

Contributors

lmckenzi avatar dadmbc avatar minigrrl avatar saulakravitz avatar jduteau avatar brynrhodes avatar healthedata1 avatar mojitoj avatar nrdavis1 avatar goelalex avatar davidpyke avatar fmckinney avatar markkramerus avatar ginocanessa avatar ioanasingureanu avatar vadi2 avatar rhausam avatar mld1995 avatar nbashyam avatar lorifourquet avatar dianawright61 avatar keithboone avatar csnewman88 avatar smahoney10 avatar donlloyd avatar gcangioli avatar patrick-werner avatar astatler avatar yuliumitre avatar isaacvetter avatar

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.