Commit Graph

142 Commits

Author SHA1 Message Date
burnettk 8c398d66b7
fix cron 2023-09-26 20:12:27 -04:00
burnettk 8833f44e98
document this jank 2023-09-26 20:10:06 -04:00
burnettk eae5c17cc7
clean up old main docker images 2023-09-26 20:02:08 -04:00
jasquat 51914e23b5
Feature/UI tweaks (#419)
* some initial ui tweaks w/ burnettk

* left align more items as per the figma page w/ burnettk

* pyl w/ burnettk

* left align additional pages w/ burnettk

* use carbon components for the rjsf forms as well w/ burnettk

* do not raise if the app cannot load an env specific config file w/ burnettk

* attempting to center all the main elements except the diagram page WIP w/ burnettk

* fix build issue

* document media query

* fixed centering of elements in webui w/ burnettk

* some tweaks to taskshow markdown w/ burnettk

* make filter button smaller as a medium size

* medium styles for these buttons to the top right of tables

* inscreased cap for metadata key when displayed and allow word-wrapping w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2023-09-07 10:12:13 -04:00
jasquat b66288b17f
Feature/business end states (#333)
* WIP: some updates to support new spiff w/ burnettk

* unit tests are passing

* all tests except message tests are passing

* fixed usage of catch message event w/ burnettk

* messages are working again w/ burnettk

* uncommented remaining message tests w/ burnettk

* fixed cypress tests w/ burnettk

* use main for spiffworkflow

* translated mysql last milestone query to sqlalchemy w/ burnettk

* fixed last milestone query so instances still return if no milestone found and moved some code from the main report method to own methods

* added some comments

* added last milestone column to process instances table

* display last milestone in instance list table w/ burnettk

* remove 3 characters when truncating last milestone for ellipsis

* make sure we have a current processor so we don't return null

* remove sleep

* The background processor now only picks up processes that were last updated more than a minute ago to avoid conflicting with the interstitial page.  With the understanding that we can rmeove this limitation when we can refactor to allow the backend processes to provide updates on what they are doing.

* pyl w/ burnettk

* cache last milestone on instances

* pyl

* added test for last milestone and added it to the proces instance show page w/ burnettk

* fixed broken test w/ burnettk

* fixed last milestone header

* removed duplicated column

* fixed broken test

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
Co-authored-by: Kevin Burnett <18027+burnettk@users.noreply.github.com>
Co-authored-by: danfunk <daniel.h.funk@gmail.com>
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2023-09-07 10:10:44 -04:00
burnettk be8923eaf5
use chromium 2023-08-31 16:16:48 -04:00
jasquat a4af390118
Feature/allow markdown in extension results (#435)
* allow markdown in extensions results w/ burnettk

* fixed tests

* moved our rjsf form to component so extensions can also use it w/ burnettk

* added ability to create extensions that can download files w/ burnettk

* added test for extensions-get-data endpoint w/ burnettk

* make user optional when getting process instance reports

* added extensions-get-data to elevated perm macro and raise an error if user is not specified when needed when running a report

* fixed typeguard test

* push extensions branch

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2023-08-21 21:59:25 +05:30
jasquat fa9a4e5d6d
Feature/event payload migration fix (#443)
* also update exclusive gateways when migrating to event payload spiffworkflow

* pyl w/ burnettk

* build docker image for this branch w/ burnettk

* check to make sure configs are not None w/ burnettk

* do not migrate tasks related to exclusive gateways w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2023-08-17 22:13:29 +05:30
Kevin Burnett 8d92d1ef4e
Feature/event payloads part 2 (#401)
* Revert "Revert "Feature/event payloads (#393)""

This reverts commit 9bc4a68f2d.

* Revert "Revert "poet not available in container""

This reverts commit 5c68e5817e.

* Revert "Revert "Run event payloads data migration from background processor (#399)""

This reverts commit b04284ac9c.

* Revert "Revert "using new spiff api to get info about events. w/ elizabeth""

This reverts commit f00e4b416c.

* Revert "Revert "fix tests for waiting_event_can_be_skipped""

This reverts commit de2ea98daa.

* push image for preview env

* default scripts to localhost w/ burnettk

* use the bugfix/update-split-task-inputs spiffworkflow branch w/ burnettk

* removed debug json files

* use main for spiffworkflow

* do not attempt to highlight non-diagram boundary items w/ burnettk

* updated SpiffWorkflow to fix multiple signal event issue w/ burnettk

---------

Co-authored-by: burnettk <burnettk@users.noreply.github.com>
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2023-08-10 18:24:49 +05:30
jasquat 4b771ac706
Feature/pin spiff in ci (#428)
* attempt to use the locked version of SpiffWorkflow in ci w/ burnettk

* fixed regex for spiffworkflow revision replacement

* make sure we also update the lockfile when getting new spiff

* install poetry before we attempt to update hte pyproject

* hardcoding spiffworkflow revision as a test w/ burnettk

* try running tests in ci from bash script w/ burnettk

* print working dir in ci w/ burnettk

* fixed location of instance dir w/ burnettk

* run with mysql in ci

* run typeguard with bash script as well w/ burnettk

* fixed postgres test w/ burnettk

* clean up github action file w/ burnettk

* fixed postgres test again w/ burnettk

* pyl

* attempt to remove nox from ci completely

* omit safety for now to test coverage

* fixed how coverage is being called from not nox

* allow running safety and macos again

* renamed run_not_nox to run_ci_session w/ burnettk

* attempt to only upload if matrix says to w/ burnettk

* attempt to install mysqlclient prereqs for mac and remove noxfile stuff w/ burnettk

* added back the constraints file w/ burnettk

* moved the contributing file to the root of arena w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2023-08-03 11:49:30 -04:00
jasquat 99de1432b0
Feature/interstitial summary part 3 (#367)
* throw an error if backend gives a 500 from interstitial page w/ burnettk

* turn unexpected errors for the interstitial page into event stream responses to avoid error misdirection

* pyl

* raise the api_error from the original and make the render_data method private

* Feature/interstitial summary (#337)

* * Process instance logs and messages are now components rather than pages, and are included within tabs on the process instance page, along with the diagram.
* Removed the Zoom and Move modules when showing the readonly
  Diagram.  Assured this readonly view is resized to fit the space when possible.
* Checkbox Widget no longer displays a duplicate label.
* CSS Tweaks
  * All pages are limited to a max display width of 1440, with auto margins to center the main content on the page.
  * "Show" pages, like ProcessInstanceShow, TaskShow have the primary content limited to 1000, also with auto-margins.
  * Paragraphs, headings, blockquotes, list items are limited to a width of 640.
  * Reduced margin bottom on all breadcrumbs.
  * Slightly reduced the width and margin of tiles
  * ordered lists and unordered lists show numbers and bullets now.
* End user Instructions component can, optionally, auto-collapse, so that only a portion is displayed, along with a toggle.  This is how it is set up for the ProcessInstanceShow page.
* Greatly reduced the lag in the interstitial page when doing a re-direct.

* run_pyl

* kill console

* wait for permissionsLoaded too since we are using ability.can

* Previous change removed the top level Messages page - this re-adds it.

* I am always, ALWAYS shocked at how I can not wrap my head around when and where to use "useEffect".

This should cause the show/hide Instructions toggle to only show when useful.

* Minor cleanup on the process instance properties display.

* linting

---------

Co-authored-by: burnettk <burnettk@users.noreply.github.com>

* Fix a linting error.

* minor permissions related fixes for the new ui.

* Revert "Revert "Feature/better subworkflow management (#331)""

This reverts commit 3becffc14f.

* do not execute tasks from the process instance show page w/ burnettk

* pyl w/ burnettk

* Very minor UI tweak to resolve a number of issues mentioned in SPIFF-316 Notion Ticket:

* Markdown links now open in a new window
* Tables on the home pages are now contained within Grids to better align them with the other content that is in a grid.
* Right aligned the "process instance list link" button to it is flush right with the table underneath
* Gave a little more breathing room the content on the info/metadata in the process instance view .

* updated docker image build action to contain the appropriate version info w/ burnettk

* properly resize to the available columns depending on s/m/l

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
Co-authored-by: Dan Funk <daniel.h.funk@gmail.com>
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2023-07-03 10:54:54 +05:30
jasquat b2158a5e79
notify slack if build docs failed w/ burnettk 2023-06-26 11:38:45 -04:00
jasquat b90b06f2f8
remove unnecessary pip upgrade for docs w/ burnettk 2023-06-26 11:36:20 -04:00
jasquat eeddf4964d
added build command for docs and created github action w/ burnettk 2023-06-26 11:33:27 -04:00
jasquat f94bce088b
format date picker helper text width to match the date widget itself … (#330)
* format date picker helper text width to match the date widget itself w/ burnettk

* not sure we need xdoctest

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2023-06-13 20:16:26 +05:30
jbirddog dd1195a44b
Bump flask for safety (#304)
* Bump flask for safety

* let snyk check flask again w/ burnettk

* attempt to use the same revision for front w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2023-06-06 17:33:48 -07:00
Kevin Burnett a7ff273a96
let dependabot update packages in one directory just to dip our toes (#300)
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2023-06-06 16:26:05 -07:00
burnettk 43144434fa
stop codecov comments and commit WIP 2023-05-30 15:07:00 -04:00
Kevin Burnett dbaffff172
Merge pull request #276 from sartography/dependabot/github_actions/actions/setup-python-4.6.1
Bump actions/setup-python from 4.6.0 to 4.6.1
2023-05-29 21:40:23 +00:00
Kevin Burnett 010623a148
Merge pull request #262 from sartography/dependabot/github_actions/codecov/codecov-action-3.1.4
Bump codecov/codecov-action from 3.1.3 to 3.1.4
2023-05-29 21:40:04 +00:00
Kevin Burnett 03424d9643
Merge pull request #148 from sartography/dependabot/github_actions/actions/download-artifact-3.0.2
Bump actions/download-artifact from 3.0.1 to 3.0.2
2023-05-29 21:35:13 +00:00
dependabot[bot] 9966797478
Bump actions/setup-python from 4.6.0 to 4.6.1
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4.6.0 to 4.6.1.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v4.6.0...v4.6.1)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-29 21:32:25 +00:00
burnettk d48020e4f1
actually stop running tests against 3.9 2023-05-27 18:34:04 -04:00
jasquat 692e584dac
only test admin permissions in ci since it takes longer run w/ burnettk 2023-05-24 11:10:40 -04:00
burnettk c1d56ff39e
record if the workflow run that triggered us was a push 2023-05-19 11:33:56 -04:00
burnettk 69d2bb938a
debug github context 2023-05-19 10:30:57 -04:00
burnettk 6852f5f84c
remove docs-build matrix build 2023-05-19 09:15:19 -04:00
burnettk 1e957f6c8a
avoid doing stuff outside of nox 2023-05-19 07:05:58 -04:00
jasquat 20cd2f08fd
ignore windows tests in ci w/ burnettk 2023-05-17 14:06:50 -04:00
dependabot[bot] 26fa06d605
Bump codecov/codecov-action from 3.1.3 to 3.1.4
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3.1.3 to 3.1.4.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v3.1.3...v3.1.4)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-16 15:03:27 +00:00
burnettk d0623ea160
more screwing with labels 2023-05-13 22:43:58 -04:00
burnettk beb1c8bf47
update failure message to include branch 2023-05-02 12:12:39 -04:00
jasquat e50a8307b0
do not notify if skipped w/ burnettk 2023-05-02 12:01:34 -04:00
jasquat f4870003cf
only run frontend tests if backend passes w/ burnettk 2023-05-02 11:49:06 -04:00
burnettk 8bd0267780
notify on more things and include conclusion 2023-05-02 08:39:13 -04:00
burnettk c0a4b26f4d
notify slack on failure 2023-05-02 08:10:41 -04:00
burnettk aea62e3f71
notify slack on failure 2023-05-01 22:03:23 -04:00
burnettk 3f4e6757ba
notify slack 2023-05-01 20:20:41 -04:00
dependabot[bot] 60a846aba1
Bump sonarsource/sonarcloud-github-action from 1.8 to 1.9
Bumps [sonarsource/sonarcloud-github-action](https://github.com/sonarsource/sonarcloud-github-action) from 1.8 to 1.9.
- [Release notes](https://github.com/sonarsource/sonarcloud-github-action/releases)
- [Commits](https://github.com/sonarsource/sonarcloud-github-action/compare/v1.8...v1.9)

---
updated-dependencies:
- dependency-name: sonarsource/sonarcloud-github-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-24 15:07:47 +00:00
burnettk 48ec8613ab
appease actionlint 2023-04-23 23:41:28 -04:00
burnettk 71f9b46002
pin to working version of sonarcloud github action 2023-04-23 23:40:28 -04:00
dependabot[bot] e0dca494e3
Bump codecov/codecov-action from 3.1.0 to 3.1.3
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3.1.0 to 3.1.3.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v3.1.0...v3.1.3)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-21 15:02:55 +00:00
dependabot[bot] 65d0b9ef8d
Bump actions/setup-python from 4.2.0 to 4.6.0
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4.2.0 to 4.6.0.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v4.2.0...v4.6.0)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-20 15:06:49 +00:00
dependabot[bot] 9e89f10556
Bump docker/metadata-action from 4.3.0 to 4.4.0
Bumps [docker/metadata-action](https://github.com/docker/metadata-action) from 4.3.0 to 4.4.0.
- [Release notes](https://github.com/docker/metadata-action/releases)
- [Commits](https://github.com/docker/metadata-action/compare/v4.3.0...v4.4.0)

---
updated-dependencies:
- dependency-name: docker/metadata-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-18 15:05:12 +00:00
jasquat 715b0211d3
removed some debug info w/ burnettk 2023-04-11 15:50:42 -04:00
jasquat 10d0bb8dae
added script to build frontend so it can add version info to the index.html file w/ burnettk 2023-04-11 15:48:34 -04:00
jasquat 092f558632
replace periods with underscores in version info w/ burnettk 2023-04-07 16:09:30 -04:00
jasquat 912bfb8285
try getting version info from evn var instead w/ burnettk 2023-04-07 15:59:46 -04:00
jasquat ff70c20acd
create the app verison file in the correct directory w/ burnettk 2023-04-07 15:48:18 -04:00
jasquat 4c02eb3cbb
we need the app_version file in the backned more w/ burnettk 2023-04-07 15:37:21 -04:00