USDAForestService / USFS-timber-permitting

The focal point for an 18F/TTS project with the United States Forest Service on timber permitting
Other
6 stars 3 forks source link

Determine level of effort needed to connect with FPFS API #86

Closed ctro closed 4 years ago

ctro commented 4 years ago

Background The first integration that OpenForest will take from TIM is with financial systems. Dig into the initial connection. Per our proposed architecture, we are currently planning to move data to FMMI from FPFS, and Open Forest will connect FPFS via a new REST API.

Acceptance criteria

Tasks

Definition of done

MelissaBraxton commented 4 years ago

Refined this a bit, @ctro

ctro commented 4 years ago

Meeting set for January 7 to discuss this, moving to "Blocked" for this sprint.

MelissaBraxton commented 4 years ago

Mel to review this issue in drafting KO agenda and include prompts for Qs re: these tasks.

MelissaBraxton commented 4 years ago

@smahmudFS adding you here, since I know you've been looking into it already. Please feel free to suggest additions/changes to the tasks we've listed and/or add comments on what you've learned most recently.

mwreiss commented 4 years ago

@MelissaBraxton there will be a firewall request (or two) that will be required to let this connectivity allowed in/out of the usda network. We have a good handle on what that looks like, we can setup a card to address.

Need to identify the destination address in FPFS. Do we have the system name, IP, port, etc?

MelissaBraxton commented 4 years ago

@mwreiss - We'll need to reconnect with Nick and Percy at FPFS for that info. @mgwalker is going to try and find some time for y'all to chat.

mgwalker commented 4 years ago

Going to pause on connecting with Nick and Percy for now, but presumably we'll be back to that before too long.

MelissaBraxton commented 4 years ago

I'll take on scheduling time with Percy and the team for the week after next when Greg is back in the office.

MelissaBraxton commented 4 years ago

Mtg w/ FPFS folks scheduled for 7/1.

MelissaBraxton commented 4 years ago

@smahmudFS and @mwreiss - Here is the model schema for the test service Nick Ault worked on for us back in Dec.

Model schema for sending firewood permit data to FPFS

{
  "regionCode": "string",
  "forestCode": "string",
  "districtCode": "string",
  "permitNumber": "string",
  "proclaimedUnitCode": "string",
  "availableDate": "string",
  "sizeClassCode": "string",
  "stateCode": "string",
  "countyCode": "string",
  "spuVolumeRates": [
    {
      "speciesCode": "string",
      "productCode": "string",
      "uomCode": "string",
      "ccfConversionFactor": 0,
      "mbfConversionFactor": 0,
      "soldQuantity": 0,
      "stumpageSoldValue": 0
    }
  ],
  "distributions": [
    {
      "budgetOrg": "string",
      "jobCode": "string",
      "procUnit": "string",
      "distAmount": 0
    }
  ],
  "associatedCharges": [
    {
      "budgetOrg": "string",
      "jobCode": "string",
      "procUnit": "string",
      "distAmount": 0
    }
  ]
}

Sample Permit (number exists, this permit is expected to fail):

{
  "regionCode": "04",
  "forestCode": "01",
  "districtCode": "02",
  "permitNumber": "013479",
  "proclaimedUnitCode": "0496",
  "availableDate": "08/15/2018",
  "sizeClassCode": "3",
  "stateCode": "49",
  "countyCode": "47",
  "spuVolumeRates": [
    {
      "speciesCode": "D",
      "productCode": "07",
      "uomCode": "02",
      "ccfConversionFactor": 0.8500,
      "mbfConversionFactor": 0.5000,
      "soldQuantity": 4.00,
      "stumpageSoldValue": 20.00
    }
   ],
  "distributions": [
    {
      "budgetOrg": "0401",
      "jobCode": "D1496F",
      "procUnit": "0496",
      "distAmount": 1.00
    },
    {
      "budgetOrg": "0401",
      "jobCode": "SF496F",
      "procUnit": "0496",
      "distAmount": 19.00
    }
  ],
  "associatedCharges": [
    {
      "budgetOrg": "0401",
      "jobCode": "FSRM01",
      "procUnit": "",
      "distAmount": 5.00
    }
  ]
}
MelissaBraxton commented 4 years ago

@smahmudFS and @mwreiss - Is this one covered by #264 on the program board?

If we can, let's consolidate the last 3 tasks here into the program board issue and then close this issue.

mwreiss commented 4 years ago

@MelissaBraxton Yes, we have the first 2 covered in #264, I will add the third so this issue can be closed out.