Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
x/pkgsite: package documentation should immediately reflect UI changes #40807
Currently, we need to reprocess the database on any UI changes (e.g. changes to the HTML templates), which can take several hours. Users who request packages that were not yet reprocessed will see the old HTML version, which when coupled with potentially new CSS changes, can have unexpected results. See #40078
We should allow the frontend to prioritize the reprocessing of any package that a user requests, so that users will always see the latest UI changes when viewing documentation.
Currently, the worker only updates the module_version_states table to mark that modules need to be reprocessed. Update the module status in the version_map table too. For golang/go#40807 Change-Id: I9a1ecf611a71f1d3dda3d7d7b20d17012a995ca3 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/248677 Run-TryBot: Shaquille Que <firstname.lastname@example.org> TryBot-Result: kokoro <email@example.com> Reviewed-by: Julie Qiu <firstname.lastname@example.org>
…ates Populate the new modules.status column whenever we insert or update module_version_states.status, in the same transaction. After this code is deployed, we should manually update NULL modules.status values to match module_version_states.status. This CL implements part of https://golang.org/cl/c/pkgsite/+/249447. For golang/go#40807 Change-Id: I8623fd71207b6578ff03de09ee12d292b36465b5 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/253080 Reviewed-by: Julie Qiu <email@example.com>