Category Archives: Server

Phil 8.1.14

8:00 – 5:30 SR

  • DB and webapps backup
  • Deployed new FA, but had to roll back because the FMPs were broken
  • Working on getting all the login permutations handled.
    • Added status return if no entries found.
    • Added fr_name parameter to the getPanel call.
  • Built the load query
  • Added a method that iterates through the array of results and builds the panel from that
  • Hooked op the FundingRequestPanel to the fromArray() method and connected it to the login. I still need to adjust the behavior based on whether the role is admin, but it works.
  • Added a load event to FundingRequestPanel
  • Added a method to grab the array of results and feed it to all the panels except FundingRequestPanel.
  • Tested and wporking for one funding request and the Administrator role.

Saved out and loaded in from the DB:

woohoo

Phil 7.31.14

8:00 – 5:00

  • Deployed new FA, RA
  • DB Backups.
  • Changed the query in the truancy report because SUM(0, null) != 0 + null in MySQL
  • Got the query built to construct a single response from the master/date/number/text tables :
    • select fpt.gid, fpt.panel_name, fpt.field_name, ftt.value from fr_panel_table fpt right
      join fr_text_table ftt on fpt.uid = ftt.uid where login = ‘projportfolio’ and panel_name =
      ‘fundingRequestsPanel’
      union
      select fpt.gid, fpt.panel_name, fpt.field_name, ftt.value from fr_panel_table fpt right
      join fr_number_table ftt on fpt.uid = ftt.uid where login = ‘projportfolio’ and panel_name
      = ‘fundingRequestsPanel’
      union
      select fpt.gid, fpt.panel_name, fpt.field_name, ftt.value from fr_panel_table fpt right
      join fr_date_table ftt on fpt.uid = ftt.uid where login = ‘projportfolio’ and panel_name =
      ‘fundingRequestsPanel’;
  • Getting the fundingRequestTable back with the login info
  • For tomorrow
    • Populate funding request panel
    • Populate other panels on load
    • Submit changes status and just saves, I think
    • Change the YUI library to point at a local copy
    • Zip and deploy???

 

Phil 7.30.14

8:00 – 5:00 SR

  • DB backups
  • New FA. There does seem to be a problem with the calculation for cell colors
  • Continuing with writing to the DB from the JS client
  • Chased down a bunch of bugs having to do with the way that fields were being loaded, particularly on the Funding Panel, where items are represented by sourceDivs
  • Set up the table structure so that guids are produced for each row on the client then used to match between the master table and the String/data/number tables.
  • Added the code to the servlet that inserts data, but haven’t connected it to the DB yet. Tomorrow.

Phil 7.29.14

8:00 – 5:00 SR

  • DB Backups
  • Wound up having to write a class that allows for the traversal of a JSON object, which I was not expecting and added a day to the effort. It’s based on the code up at json.org. Finished with the basics, and can recursively navigate and return key/value pairs or an array of Objects that match a given key. Tomorrow we’ll need to add capability (either to the JsonNav class or to the servlet that will write rows into the db.

Phil 7.28.14

8:00 – 2:30 SR

  • DB Backups
  • Deploy new queries.
  • Remote object problems. Bounced the VM, which seemed to fix
  • Added a query to see who’d logged in today, so we can warn people before stopping the server.

Phil 7.25.14

8:00 – 5:00 SR

  • DB Backups
  • Added a event handler to get the comments.
  • Add clear() method. Nope, just used location.reload(true) to force a reload of the page from the server. Better!
  • Drat. I need it anyway, to prep for loading JSON. Done.
  • Save and Load should use the name in the FR name field. If the name is not in the list when save is pressed, it’s added to the list.
  • Work on save first, then load.
  • How to do a compound insert from Dong:
    • LAST_INSERT_ID() gives you the key/index of the last record inserted…..

      1. insert the first record

      INSERT INTO data_table (uid, data) VALUES (null, ‘data’)
      2. insert into master record
      INSERT INTO master_table (uid, some_data, key_to_data_table) VALUES (null, ‘some_data’, LAST_INSERT_ID());

Phil 7.23.14

8:00 – 5:00 SR

  • DB Backups
  • I need to check to see what should be generated for:
    • 11. (U) Contract Details
      12. (U) How does your organization process funding requests?
      13. (U) Do you require 100% of funds in order to obligate this funding to contract?
    • Fixed. I was pointing the output of the panels to the wrong div
  • Bold ‘Cum Amt ($K)‘ Done
  • Move the BLUF module above the POC module and include it in the center section as #5. Done
  • Correctly exporting the javautils jar
  • Accessing the DB
  • Need to write a toJsonString() method for DbTable. Done. Since everything is stored as strings in the webapp, the strings are validated at the client and converted to sql-friendly strings.
  • There is no good way to send full objects, so I spent some time seeing what a good strategy for stringifying is. So far I’m at this:
    • user:pgfeldm.type:text.panel:fundingRequestsPanel.val:fundingRequestType = ‘MIPR’
      user:pgfeldm.type:number.panel:fundingRequestsPanel.val:fundingRequestAmount = ‘32919’
      user:pgfeldm.type:text.panel:fundingRequestsPanel.val:fundingRequestAppropriation = ‘RDTE’
      user:pgfeldm.type:text.panel:fundingRequestsPanel.val:fundingRequestStatus = ‘Incomplete’
      user:pgfeldm.type:text.panel:fundingRequestsPanel.val:fundingRequestTaskName = ‘Task_9’
      user:pgfeldm.type:text.panel:fundingRequestsPanel.val:fundingRequestNumber = ‘ABC-123-9’
      user:pgfeldm.type:text.panel:fundingRequestsPanel.val:fundingRequestName = ‘fundingRequest_9’
    • Which is pretty easy to parse. Not thrilled about the extra chars…

Phil 7.22.14

8:00 – 4:30 SR

  • DB backups
  • Changed the truancy report to run automatically from a view
  • generated email list of all FY2014 users for Lenny
  • Got my Eclipse running Tomcat again. As near as I can tell, the pattern that works is to delete the old server, create a new one using the wizard, point at the web project (in this case YuiServletServer), make sure that the new server is pointing at the Tomcat instance, and then try, delete repeat until that works.
  • Started integrating servlet access into PanelModuleTest. I’m also automatically deploying to the Tomcat server (running in Eclipse) from Webstorm. Sheesh.
  • Got the call to the JsonSinWaveServlet running inside PanelModuleTest
  • Created a new FundingRequestServlet and updated the web.xml.

7.18.14

8:00 – 5:00 SR

  • DB Backups
  • Deployed the new view and built Lenny’s ‘Truancy Report’. Nice to see all the pieces working.
  • Need to add another panel?
  • The IE8 fix does in fact work
  • Finish building HTML financial report
  • Add ADMIN config. Done
  • Added comments so that they are editable when admin
  • Continued with linking panel objects to text. Need to add in the totals object.
  • New req’s for financial report:
    • The new module is Requisition BLUF and should be right below the Funding Description module.The module needs one field labeled Requisition BLUF (which will be roughly 6 sentences long).

      Instructions: Please provide a BLUF specifically for this requisition not for the project as a whole.  The requisition BLUF should consist of one to two sentences discussing the capability gap and why this is a problem, one to two sentences discussing what the requisition is going to do to address the capability gap and one to two sentences discussing why the ISR PMO should care about this capability gap.

    • Can you also add Agency/Service Lab as the first field in the Project Description module?  This will be a dropdown list.  I have to gather all the lab names but for now you can include: AFRL Rome, AFRL WP, APG, DOE, I2WD, NRL, RadBn Mods, SCMA, SOCOM, SPAWAR Atlantic and SPAWAR Pacific.Instructions: Please select the agency or service lab that will be managing this funding.
    • Add the ISR PMO POC (single field) to the ISR PMO Admin module below the Base/OCO field.
  • Same old link: http://philfeldman.com/PanelModuleTest.html

Phil 7.17.14

8:00 – 5:30 – SR

  • Contract Details
    • Add button should be enabled because there could be multiple contracts and /or multiple vendors. Done
  • Statement of Work
    • Text entered doesn’t show in the top portion when added. Done
  • Really fixed the IE8 color problem. IE8 doesn’t handle <div> events. I moved the handler to after the <input>s are created in the form.
  • Working on creating the document – making progress – http://philfeldman.com/PanelModuleTest.html

Phil 7.16.14

8:00 – 5:00 SR

  • Add an argument that turns off the “totals” table – done
  • Fix yellow on IE8 – fixed? Nope – the events can’t seem to
  • Add instructions. Done
  • Any items in Lenny’s list that don’t have “Remove Add/Delete buttons” can have multiple rows – done
  • Add funding request name. Done
  • All fields in the File Module should be set to watch the divs of other items. When the “set Info” button is pressed, it will load get(‘value)  from the watched items. Done
  • Uploaded and ready to test: http://philfeldman.com/PanelModuleTest.html

PGF 7.15.14

8:00 – 5:00 SR

  • Got Lenny’s initial response – done (http://philfeldman.com/PanelModuleTest.html)
  • DB Backups
  • Add the row limit argument and alerts that fire if the user attempts to overshoot. – done
  • Need to add an ‘admin’ checkbox on the login so that I can work through admin vs user logic. – done
  • Yellow change doesn’t work in IE8. Maybe the change event is wrong?
  • A Funding request can’t be saved until the Project Information panel is complete.
  • Save panel should have
    • Task name – done
    • project number – done
    • funding type – done
    • appropriation – done
    • amount – done
    • (search) – working

Phil 7.11.14

8:00 – 4:00 SR

  • DB Backups
  • Data Viz isn’t creating timelines any more. The information is going across, but the date is Jan 1 1970 and nothing shows.
  • Walked through the FRF with Lenny.
  • Financial Form
    • Added a section for instructions
    • Added in the rest of the panels
    • Added the logic for changing the color of the buttons. Didja know that CSS style ‘background-color’ is represented as ‘backgroundColor’ in the DOM? Neither did I.
    • Started to add <div>s and text for the text output.
    • Here’s the link again: http://philfeldman.com/PanelModuleTest.html

Phil 7.10.14

8:00 – 5:00SR

  • DB Backups
  • Deployed new FA
  • Tried a thing or two to speed up the DB. No joy.
  • Tested the new JS on IE8. Seems to work fine. Need to
    • Set the max number of rows that can be added (-1 = infinite?)
    • Set the minimum required rows (default = 1)
    • Get rid of the submit button. Done
    • Add ‘submit’ and ‘save’ to the form.
    • Color code buttons (Red-untouched, Yellow-touched no rows, Green-minimum required rows
    • Added logic to prevent multiple panels at the same time.
    • Added total line if there for numeric values in a table
    • Adding forms.
    • Same old link: http://philfeldman.com/PanelModuleTest.html