Commit Graph

17 Commits

Author SHA1 Message Date
momijizukamori a0ca65ee1b
API tooling (#3033)
* Updates to API generation and tooling

- Added build script and build instructions for API files
- Updated `.gitignore` to keep node_module folders out, wherever they occur
- Rewrite existing YAML files to use new component system
- Compile rewritten YAML files
- Add more validation checks to the route builders and dispatchers
- Add a user-facing documentation page with interactive view using RapiDoc
- Add a generic 404 handler for missing routes under `/api`, which returns JSON instead of HTML
- Clean up spec output route slightly to make it valid OpenAPI 3.0.0

* Auto-fill API Key in docs

Co-authored-by: Cocoa <momijizukamori@gmail.com>
2023-01-03 22:42:09 -08:00
Jen ede4d26236
add ext/dw-nonfree/htdocs/stc/css to .gitignore (#2992) 2022-10-20 10:35:02 +08:00
Mark Smith 7b3f26eb0b Merge dw-nonfree into dw-free
This basically transplants the repository into ext/. There are cleaner ways
we can do this (by actually folding the code into the right places) but this
will suffice for now to solve the problems.
2022-10-19 15:47:16 +08:00
Mark Smith 88785c5137 Get rid of Apache notes
This switches to using a request cache on the DW::Request object instead
of using Apache notes. This also gives us a facility for observing who
is interacting with request cache -- which might please Nick as it would
let us untangle the wilderness that is Apache notes.
2021-08-23 05:34:54 +00:00
Mark Smith 2ca769bd41 Add htop, and update for using perl-cpm 2021-02-01 03:44:01 +00:00
Mark Smith b00a0f64ca
TaskQueue: to replace TheSchwartz (#2600)
Replace TheSchwartz with a TaskQueue shim, with some plumbing for doing SQS based routing of events. This also has workers for doing our ESN pipeline.
2019-12-04 17:53:46 -08:00
Mark Smith 4d33e9a3b5
Run perltidy on everything. (#2467)
* Perltidy the world.

All will be well! For real this time...

* Add YAML::XS

* Add JSON::Validator

* Run tidier in tests

* Tidying??
2019-05-25 13:39:14 -07:00
Andrea Nall 9d5aa91f6e Fix some tests.
Make these tests also respect extlib, which makes it possible
for people to test new modules on a Dreamhack or other shared
coding environment without having to wait for system modules
to be installed.

extlib was already supported in the codebase in general, but
some tests did not respect it.
2015-02-14 03:15:39 +00:00
Mark Smith d1a9278329 Add caching proxy
This is going to be used in the situation where a user has embedded some
HTTP content and we're delivering the page over HTTPS. I.e., this
enables us to "promote" the content to SSL by proxying it ourselves and
caching it locally.

Files are only cached for a little while, so if the content becomes
unavailable upstream, we will also stop serving it.
2015-01-18 20:05:29 +13:00
Foxfirefey 5de18a6bb9 (Bug 5073) Basic foundation/SCSS set up
Bring in the ability for us to use the Foundation CSS template.

This adds compass compilation to our build process.

This varies the HTML we generate depending on if we're in Foundation
mode or not to fix the logged out forms.
2013-07-23 02:07:16 +00:00
exor674 c7c9219147 Fix missing gitignore
locks and var ( well, var/useresarch.dat, but I think all of var is safe )
2012-11-30 18:06:31 +00:00
mark 0196aafc5b Revamp importer logic to drop URLs
We've once again been bitten by the bug wherein we depend on the URLs
and end up causing duplicate posts or comment imports. While it was nice
to depend on those URLs, we don't need to.

This commit changes it so that our import_source lines are actually just
slash separated tuples that we can generate with information that we
know, and that the remote site has to provide. (Itemids, notably.)

This commit also takes care of a long-standing issue and updates the
grabbed_until columns for jobs so that long running jobs won't get
passed on to a new worker while they're still busy.
2012-11-03 23:25:26 +00:00
Afuna b8f7f764c1 (Bug 4624) Copy CSS, JS, image files to build/static
- uses rsync, which does the hard work of checking for modified/deleted
  files for us
- add build/static to .gitignore, so that we don't accidentally commit
  anything in this folder
- build/static is only for generated files and shouldn't be touched (we
  don't care about things going the other way)
2012-09-12 05:34:33 +08:00
exor674 f1cb100a69 (bug 4436) Inline DDLockClient. 2012-06-16 01:08:52 +00:00
exor674 d5c9b54810 (bug 4436) gitignore more, add readme to ext dir
Gitignore ext / extlib ( cpanm directory )
Add readme to ext directory

Patch by exor674.
2012-06-15 20:29:01 +00:00
exor674 0a0215e2f1 http://bugs.dwscoalition.org/show_bug.cgi?id=4436
Work with dw-free only ( no ability to "overlay" -nonfree, etc yet )

Patch by exor674.
2012-06-15 20:25:48 +00:00
exor674 5ebb203b01 Initial preparatory work for git conversion
Patch by exor674.
2012-05-15 04:55:12 +00:00