GSA / data.gov

Main repository for the data.gov service
https://data.gov
Other
613 stars 98 forks source link

Inventory : Deprecation Warning :: Regex Cleanup #4429

Open btylerburton opened 1 year ago

btylerburton commented 1 year ago

Inventory Prod logs show a deprecation warning for a regex method...

   2023-08-24T09:42:03.91-0500 [APP/PROC/WEB/1] ERR /home/vcap/app/datastore-usersetup.py:33: DeprecationWarning: Flags not at the start of the expression "((?i)PASSWORD\\s+)(\\'" (truncated) but at position 1
   2023-08-24T09:42:03.91-0500 [APP/PROC/WEB/1] ERR s = re.sub(

This points to the code here: https://github.com/GSA/inventory-app/blob/main/datastore-usersetup.py#L33-L36

Reference:

Sketch

hkdctol commented 9 months ago

@btylerburton is this something that should still be in product backlog