Commit graph

31 commits

Author SHA1 Message Date
Jennifer Richards 9681d9f978
fix: revert POST for document search requests (#8263)
* Revert "fix: ensure csrf cookie for searches (#8260)"

This reverts commit 622ded5d2b.

* Revert "refactor: eliminate single-use helper (#8226)"

This reverts commit 6608c9d530.

* Revert "feat: POST for document search requests (#8206)"

This reverts commit b65a37b6e8.

* test: add back test fix

* refactor: eliminate single-use helper
2024-11-22 13:30:54 -06:00
Jennifer Richards b65a37b6e8
feat: POST for document search requests (#8206)
* refactor: doc search via POST (WIP)

Changes the search view to use a POST instead of a GET. Refactors cache key computation to use cleaned data.

Still todo:
 * refactor frontpage view to match
 * refactor menubar search (?)
 * refactor stats view that uses SearchForm
 * revive or drop the "backwards compatibility" branch

* feat: convert GET search to POST

Still todo:
 * refactor frontpage view to match
 * refactor menubar search (?)
 * refactor stats view that uses SearchForm

* fix: revert frontpage changes, search works

Still todo:
 * refactor stats view that uses SearchForm

* fix: define vars in all branches

* refactor: update stats use of SearchForm

* chore: improve message

* fix: remove lint

* chore: comments re: QuerySetAny

* test: test query string search params

* style: Black

* test: refactor test_search()

* test: refactor test_search_became_rfc()

* test: use scroll_and_click helper
2024-11-14 16:05:38 -06:00
Jennifer Richards 68eb685382
test: Use django_stubs_ext.QuerySetAny for isinstance() checks
mypy complains if QuerySet is used because it uses a parameterized
generic type.
2023-05-13 10:05:33 -03:00
Lars Eggert 3234f1a121
test: Validate HTML rendered during tests (#3782) 2022-04-07 13:30:38 -03:00
Lars Eggert eb5423d084
ci: Also check generated HTML with the "vnu" validator (#3682)
* ci: Also check generated HTML with the "vnu" validator

Because HTML Tidy apparently misses a bunch of errors.

* thead -> tbody

* More fixes

* More fixes

* Start checker in test runner
2022-03-21 12:50:23 -05:00
Lars Eggert ed30521e14 Many more HTML fixes.
- Legacy-Id: 19908
2022-02-03 07:49:34 +00:00
Lars Eggert a9738bc2b2 Many more changes related to tablesorter.
- Legacy-Id: 19702
2021-11-23 15:31:34 +00:00
Henrik Levkowetz 27da6e86d4 Widgets' .render() method now must accept an additional keyword argument (renderer); adjusted the code accordingly (including a library patch -- pull request also submitted).
- Legacy-Id: 18056
2020-06-24 20:44:47 +00:00
Henrik Levkowetz f10ddadc0e Merged in changes from trunk up to r17584.
- Legacy-Id: 17593
2020-04-07 16:02:52 +00:00
Henrik Levkowetz 3b1cb2903b Changed an obsolete document.href() to document.get_href(). Fixes issue #2945.
- Legacy-Id: 17559
2020-03-30 16:22:12 +00:00
Henrik Levkowetz 726fcbf27d Removed all __future__ imports.
- Legacy-Id: 17391
2020-03-05 23:53:42 +00:00
Henrik Levkowetz 2d7c9629aa Added 'from __future__' imports all over the place, to bring code behaviour into closer alignment between python2 and python3
- Legacy-Id: 16446
2019-07-15 15:40:51 +00:00
Henrik Levkowetz d7f5c84182 Initial 2to3 patch with added copyright statement updates.
- Legacy-Id: 16309
2019-06-27 14:40:54 +00:00
Lars Eggert 8a70e9773d Fix various "RemovedInDjango20Warning" warnings. Commit ready for merge.
- Legacy-Id: 13112
2017-03-25 19:16:45 +00:00
Ole Laursen 86c3a430d1 Merge in ^/branch/iola/event-saving-refactor-r10076, fixing a few problems
- Legacy-Id: 10298
2015-10-27 10:37:06 +00:00
Henrik Levkowetz a7667fb29e Merged in branch/amsl/liaisons/6.4.1@10160 from rcross@amsl.com, bringing in the new liaison tool.
- Legacy-Id: 10161
2015-10-09 19:48:21 +00:00
Henrik Levkowetz cc4190f1f0 Merged in [9781] from lars@netapp.com:
Move a (duplicate) style tag from python into the template CSS.
The liaison manager is horrible in the amount of HTML it includes in python.
 - Legacy-Id: 9799
Note: SVN reference [9781] has been migrated to Git commit d41e3db6fc40dcd5bacb9bf5a17b24f459203bd2
2015-07-18 15:14:16 +00:00
Ole Laursen 373644edf4 Port liaison submission/editing to Bootstrap, revamp the select related widget to use select2 rather than the longish popup table
- Legacy-Id: 8738
2014-12-12 17:59:57 +00:00
Emilio A. Sánchez López 1bcb8ca8c6 Fix when an initial value does not exist. See #739
- Legacy-Id: 8104
2014-07-18 16:18:19 +00:00
Emilio A. Sánchez López 0ccbe9144f Allow multiple related liaisons. Close #739
- Legacy-Id: 8103
2014-07-18 16:15:16 +00:00
Ole Laursen 4250a95556 Remove proxy layer from liaisons tool, do some minor cleanups of
duplicated code, make sure the custom form widgets escape their input.

There's still a bit of custom proxying going on in the IETFHM class
hierarchy.
 - Legacy-Id: 6794
2013-12-05 13:54:48 +00:00
Ole Laursen 2bf8e0a45d Move fixture generation for names to name app, add liaison edit test,
fix some liaison bugs
 - Legacy-Id: 3347
2011-08-22 12:37:56 +00:00
Ole Laursen 91ced5c24a Fix some problems with liaison importer and related models, add a
test, port account management and related utilities, fix up proxy and
port most of the views and form code
 - Legacy-Id: 3345
2011-08-19 21:11:49 +00:00
Emilio A. Sánchez López fb7b3d2152 Allow to filter the to field when a Liaison Manager changes de from field. Fixes #577
- Legacy-Id: 2790
2011-02-02 14:46:01 +00:00
Emilio A. Sánchez López 73f9fe310b Allow the user to select a referenced liaison. Fixes #381
- Legacy-Id: 2538
2010-10-01 10:17:40 +00:00
Emilio A. Sánchez López cbde116241 Save attachments into FS. Fixes #342
- Legacy-Id: 2482
2010-08-17 12:00:20 +00:00
Emilio A. Sánchez López 1a2f1559c4 Check if the user needs to approval to send a liaison on behalf of an entity.
Ajax queries merged into one.
See #353
 - Legacy-Id: 2445
2010-07-28 13:01:14 +00:00
Emilio A. Sánchez López 709181c978 Outgoing liaison form with automatic filled fields. See #343
- Legacy-Id: 2428
2010-07-27 08:08:11 +00:00
Emilio A. Sánchez López ab8cbbb835 Save liaison and attachments. See #342
- Legacy-Id: 2374
2010-07-22 12:00:50 +00:00
Emilio A. Sánchez López a2cbb76acd Date picker and file attachments. See #342
- Legacy-Id: 2373
2010-07-22 08:13:48 +00:00
Emilio A. Sánchez López 0cf3a7f33b Update automatically POC and CC fields for incoming liaison. See #345
- Legacy-Id: 2349
2010-07-20 11:06:20 +00:00