Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filtering Area Based on Currently Edited Seeding Log #628

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Commits on Mar 3, 2023

  1. 1. Changes to the seedingReport.html

    - Added a new function to the created hook. This is the 'getAllPages(area)' in order to get the JSON objects for all the areas. I need this data because currently the page only has the names of the areas available to it but not whether the area belongs to the greenhouse or not.
    - To the point above, this is incredibly inefficient in my mind. Should we be caching these areas? I imagine they're already cached if someone is visiting the Seeding Input.
    - Two new data variables have been added: 'editRowID' which will be assigned the ID of the row being edited which is returned by the CustomTable's edit-clicked event. The other one is the 'editingAreaFilter' which serves as the dynamic area array that is sent to the CustomTable with direct/tray seeding areas depending on what log is being edited. There's also the 'areaJSONList' which is used for holding the JSON objects for all areas.
    - A new function has been added 'updateRowEditID'. This name should be changed but the function basically assigns 'editingAreaFilter with the appropriate area names depending on what seeding log is being edited.
    - The CustomTable feeds the edit-clicked straight to the new 'updateRowEditID'. I couldn't figure out how to run two functions because doing so wouldn't send the payload to the new function, so I moved the execution of the 'disableFilters' into the new function.
    - 'enableFilters' also has an added line that emptys the dynamic list now that it's not needed.
    FutzMonitor committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    115e4c8 View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2023

  1. 1. Changes to seedingReport.html

    - Minor changes
    FutzMonitor committed Mar 5, 2023
    Configuration menu
    Copy the full SHA
    9826451 View commit details
    Browse the repository at this point in the history

Commits on Mar 10, 2023

  1. Configuration menu
    Copy the full SHA
    b7cf679 View commit details
    Browse the repository at this point in the history
  2. 1. Changes to seedingReport.html

    - Renamed 'updateRowEditID' to 'updateEditable'. The method takes the ID of the emitted 'edit-clicked' event to search the list of logs for the matching log and check its seeding type. If the seeding type is direct: the editableAreas is set to only field areas; if the seeding type is tray seeding: the editableAreas is set only to greenhouse areas.
    - Three new arrays have been made: editableAreas is returned in the computed function that returns all the column information to the CustomTableComponent. Its value is assigned in 'updatEditable'. The greenhouseAreas' array is assigned its value on created. The 'fieldAreas' array is assigned its value on created.
    - Figured out how to add the 'disableFilters' back in the CustomTable tag while still passing the event payload to the 'updateEditableAreas' method.
    - Created now caches araeas and code was added to assign the values for 'greenhouseAreas' and 'fieldAreas'.
    - CreatedCounter updated to 9 since although two more created API calls were technically created only one or the other will actually be called.
    FutzMonitor committed Mar 10, 2023
    Configuration menu
    Copy the full SHA
    762d247 View commit details
    Browse the repository at this point in the history
  3. 1. Changes to seedingReport.html

    - Removed some commented code
    FutzMonitor committed Mar 10, 2023
    Configuration menu
    Copy the full SHA
    d635a53 View commit details
    Browse the repository at this point in the history
  4. 1. Changes to seedingReport.html

    - Removed computed method for area names as nothing but the CustomTable was using it and it no longer uses it.
    FutzMonitor committed Mar 10, 2023
    Configuration menu
    Copy the full SHA
    ac62b83 View commit details
    Browse the repository at this point in the history