instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
PowerDNS__pdns__16140 | PowerDNS/pdns | 16,140 | defect | b2fe0c5d63f1855aee57ec7d9dd7f4dbaa9bb541 | 62af150ded89da4ae922e0ad6dc82af9868e7a5e | dnsdist: Fix reentry issue in TCP downstream I/O on macOS/BSD | ### Short description
<!-- Write a small description of what this Pull Request fixes or provides, including the issue #s -->
Based on the work done by @karelbilek in https://github.com/PowerDNS/pdns/pull/16079, many thanks!
Fixes #16072 at least on my FreeBSD tests.
### Checklist
<!-- please indicate if any of... | diff --git a/pdns/dnsdistdist/dnsdist-nghttp2.cc b/pdns/dnsdistdist/dnsdist-nghttp2.cc
index 1e289901f3ec..c5be3a1c883a 100644
--- a/pdns/dnsdistdist/dnsdist-nghttp2.cc
+++ b/pdns/dnsdistdist/dnsdist-nghttp2.cc
@@ -379,7 +379,6 @@ void DoHConnectionToBackend::handleReadableIOCallback(int fd, FDMultiplexer::fun
if (c... | 1 | 1 | 0 | [{"id": "G0", "claim": "The explicit assignment of `d_handlingIO = true` before constructing `HandlingIOGuard` is redundant because the guard's constructor now sets the flag.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
PowerDNS__pdns__16227 | PowerDNS/pdns | 16,227 | defect | 4cb0337e480c9820abc4ee94eeb1aa4a72692371 | 101947cc4cbcd75c22062a359b969e4c458fd8d8 | Do not include dnsseckeeper.hh and ueberbackend.hh in rec | ### Short description
<!-- Write a small description of what this Pull Request fixes or provides, including the issue #s -->
### Checklist
<!-- please indicate if any of these things are done/included with this Pull Request. Not all boxes need to be checked for the Pull Request to be accepted -->
We separate ou... | diff --git a/pdns/Makefile.am b/pdns/Makefile.am
index 9722a3fd1279..d429e782b56b 100644
--- a/pdns/Makefile.am
+++ b/pdns/Makefile.am
@@ -223,6 +223,7 @@ pdns_server_SOURCES = \
dnsparser.cc \
dnsproxy.cc dnsproxy.hh \
dnsrecords.cc dnsrecords.hh \
+ dnssec.hh \
dnssecinfra.cc dnssecinfra.hh \
dnsseckeeper.h... | 1 | 1 | 0 | [{"id": "G0", "claim": "The include of <openssl/sha.h> should be replaced by the header that actually provides the OPENSSL_VERSION_MAJOR macro used by the preprocessor checks (a suggestion proposes `#include <openssl/opensslv.h> // OPENSSL_VERSION_MAJOR`).", "category": "maintainability", "verdict": "supported", "prior... | null |
PowerDNS__pdns__16232 | PowerDNS/pdns | 16,232 | defect | 120dbb79f3e757e5a7f16c050f0c0bab9254d68c | d60e4c9ad21ad5cb5e85657ef184a86234411f16 | rec: Allow ability to validate certificates (and more) for outgoing DoT connections | ### Short description
<!-- Write a small description of what this Pull Request fixes or provides, including the issue #s -->
Also includes enabling of `gnutls` as TLS provider. <strike>Draft as two tests currently fail as the pdns nameservers have an expired cert. Also I want to add more tests. </strike>
### Che... | diff --git a/pdns/dnsdistdist/test-dnsdistnghttp2-in_cc.cc b/pdns/dnsdistdist/test-dnsdistnghttp2-in_cc.cc
index 7d8924ce999e3..c1b892e55e7b1 100644
--- a/pdns/dnsdistdist/test-dnsdistnghttp2-in_cc.cc
+++ b/pdns/dnsdistdist/test-dnsdistnghttp2-in_cc.cc
@@ -406,6 +406,11 @@ class MockupTLSConnection : public TLSConnecti... | 8 | 8 | 1 | [{"id": "G0", "claim": "The new docs sentence should read 'an outgoing TLS (DoT) configuration is defined as' instead of 'an outgong TLS (DoT) configurations is defined as'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In the YAML sample, 'provi... | null |
PowerDNS__pdns__16521 | PowerDNS/pdns | 16,521 | defect | e9b88b8064dd37d30d896f8d9d7ebbecbaa7e3f7 | 8f0bf1c20607aa2d3521db3f0afb4812db3a48f4 | dnsdist: Cleanup of the `AF_XDP`/`XSK` code | ### Short description
<!-- Write a small description of what this Pull Request fixes or provides, including the issue #s -->
This PR is cleaning up the `AF_XDP`/`XSK` code, adding additional checks, clarifying the code and fixing one potential issue when rewriting IPv6 packets. As far as I can the added checks are no... | diff --git a/pdns/dnsdistdist/Makefile.am b/pdns/dnsdistdist/Makefile.am
index cef13c50efa5..72fc709c65b0 100644
--- a/pdns/dnsdistdist/Makefile.am
+++ b/pdns/dnsdistdist/Makefile.am
@@ -409,6 +409,7 @@ testrunner_SOURCES = \
test-dnsdist-ipcrypt2_cc.cc \
test-dnsdist-lua-ffi.cc \
test-dnsdist-opentelemetry_cc.cc... | 2 | 2 | 0 | [{"id": "G0", "claim": "The FSF address lines in the new test file's licence block should be replaced with the current wording from COPYING, since the FSF no longer puts its street address there.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In g... | null |
PowerDNS__pdns__16531 | PowerDNS/pdns | 16,531 | defect | c1a119939c2d657f2d6ac9d63589d9ac803e093a | 7e13b91f6389f4318d3ba8a1da49c74187f27264 | Spelling | ### Short description
I can split this into a few things, but there are some exciting items...
### Checklist
<!-- please indicate if any of these things are done/included with this Pull Request. Not all boxes need to be checked for the Pull Request to be accepted -->
I have:
- [x] read the [CONTRIBUTING.md](http... | diff --git a/.clang-tidy.bugs b/.clang-tidy.bugs
index f6499ffc38fe3..de846008a7df1 100644
--- a/.clang-tidy.bugs
+++ b/.clang-tidy.bugs
@@ -64,7 +64,7 @@ CheckOptions:
- key: bugprone-reserved-identifier.AllowedIdentifiers
value: ''
- key: bugprone-easily-swappable-parameters.IgnoredParameterTypeSuffixes
- ... | 6 | 2 | 0 | [{"id": "G0", "claim": "The pdnsutil bash completion command list contained a duplicate 'hsm' entry — harmless in itself, but it raises questions about how the item was generated.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "Changing 'records of... | null |
PowerDNS__pdns__16576 | PowerDNS/pdns | 16,576 | defect | 8b4e32eff13ef33f4170b7378bca9f700ee64914 | 0198308fcd85ee757fb60e392fdebae1936ccfad | dnsdist: OpenTelemetry additions | ### Short description
This PR adds 3 large new features for OpenTelemetry Tracing.
First off, RAII semantics are used to send out OpenTelemetry Traces when a `RemoteLogger` is passed to the `SetTraceAction`. This is still a PowerDNS Protobuf message, but only with a Type and OpenTelemetryData field.
Secondly t... | diff --git a/pdns/dnsdistdist/dnsdist-actions-definitions.yml b/pdns/dnsdistdist/dnsdist-actions-definitions.yml
index 055dac87effac..b01e467bbb55b 100644
--- a/pdns/dnsdistdist/dnsdist-actions-definitions.yml
+++ b/pdns/dnsdistdist/dnsdist-actions-definitions.yml
@@ -402,10 +402,18 @@ are processed after this action"
... | 4 | 4 | 1 | [{"id": "G0", "claim": "In getSetTraceAction (dnsdist-configuration-yaml.cc) the assembled loggers vector should be moved rather than copied into SetTraceActionConfiguration::remote_loggers, per the suggested `.remote_loggers = std::move(loggers),`.", "category": "performance", "verdict": "supported", "priority": "P2",... | null |
PowerDNS__pdns__16622 | PowerDNS/pdns | 16,622 | defect | 40d2b4311e40f193dd6766da684cb61817dd0145 | 0b52a4657af650544410123576ee2e1387416923 | LuaWrapper: Add support for `std::variant` | ### Short description
<!-- Write a small description of what this Pull Request fixes or provides, including the issue #s -->
### Checklist
<!-- please indicate if any of these things are done/included with this Pull Request. Not all boxes need to be checked for the Pull Request to be accepted -->
I have:
- [x] r... | diff --git a/ext/luawrapper/include/LuaContext.hpp b/ext/luawrapper/include/LuaContext.hpp
index 7bc2a747959c..7a333dd44469 100644
--- a/ext/luawrapper/include/LuaContext.hpp
+++ b/ext/luawrapper/include/LuaContext.hpp
@@ -47,6 +47,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <tuple>
#in... | 3 | 1 | 1 | [{"id": "G0", "claim": "Requiring C++17 for the new std::variant support bumps luawrapper's C++ requirement, and the reviewers suggested wrapping the C++17-only code in `#if __cplusplus >= 201703L` guards to keep C++11 working.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"... | null |
PowerDNS__pdns__16639 | PowerDNS/pdns | 16,639 | defect | 6e2dcb87f492c5fdbbebb36a31a5250c1af56939 | 15b1a031c8631d78d52b58575d203a394396517c | auth: remove configurable random generator leftovers | ### Short description
As pointed in #16554, these configuration options no longer have any effect, so remove them, document them as removed, and clean up afterwards.
### Checklist
<!-- please indicate if any of these things are done/included with this Pull Request. Not all boxes need to be checked for the Pull Re... | diff --git a/docs/settings.rst b/docs/settings.rst
index bc23926b368f9..b600683fc7524 100644
--- a/docs/settings.rst
+++ b/docs/settings.rst
@@ -785,6 +785,10 @@ To use shared LUA states, set this to ``shared``, see :ref:`lua-records-shared-s
``entropy-source``
------------------
+.. versionchanged:: 4.9.0
+
+This ... | 2 | 1 | 1 | [{"id": "G0", "claim": "Instead of dropping the `entropy-source` and `rng` settings outright, the pull request should keep accepting them for one release cycle while warning that they are obsolete.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pull ... | null |
PowerDNS__pdns__16668 | PowerDNS/pdns | 16,668 | defect | f1b425158f89210108dc856a409c03349a6fc54d | 8f607f9688fbfd83f38c52a680f85f4f6a8fcb9c | dnsdist: Add an histogram of health-check latencies for backends | ### Short description
<!-- Write a small description of what this Pull Request fixes or provides, including the issue #s -->
The existing metric only keeps the latency of the latest successful health-check query, which is not very useful to keep track of latency spikes because it changes every second.
### Checklis... | diff --git a/pdns/dnsdistdist/dnsdist-healthchecks.cc b/pdns/dnsdistdist/dnsdist-healthchecks.cc
index aed2420cd4f1..52b028ee5b98 100644
--- a/pdns/dnsdistdist/dnsdist-healthchecks.cc
+++ b/pdns/dnsdistdist/dnsdist-healthchecks.cc
@@ -61,6 +61,34 @@ struct HealthCheckData
bool d_initial{false};
};
+static void up... | 5 | 2 | 1 | [{"id": "G0", "claim": "doLatencyStats should use double (not int) for the elapsed time argument to match the pre-existing doLatencyStats signature, and the new if block should at least be factored out.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai... | null |
PowerDNS__pdns__16741 | PowerDNS/pdns | 16,741 | defect | 93ec8d9aa448be0ad7c0eb9bf96a2e0eb5a2cef7 | 3d83e92de83188f4ab88bd697eef721c1d3a5a91 | feat(dnsdist): Add instance field to OT Trace messages | ### Short description
This PR ensures there is an `instance` field set to the DNSDist server id in OpenTelemetry Trace messages.
### Checklist
I have:
- [x] read the [CONTRIBUTING.md](https://github.com/PowerDNS/pdns/blob/master/CONTRIBUTING.md) document
- [x] read and accepted the [Developer Certificate of Origin](... | diff --git a/pdns/dnsdistdist/dnsdist-actions-factory.cc b/pdns/dnsdistdist/dnsdist-actions-factory.cc
index 8fa0e6fc6f0c0..f4a2e377cdda0 100644
--- a/pdns/dnsdistdist/dnsdist-actions-factory.cc
+++ b/pdns/dnsdistdist/dnsdist-actions-factory.cc
@@ -29,6 +29,7 @@
#include "config.h"
#include "dnsdist-configuration.h... | 3 | 2 | 0 | [{"id": "G0", "claim": "The way the new `instance` attribute is attached to OT trace messages differs from what rec does in its `boilerPlate`, which puts `hostname` and `server.id` in the instrumentation scope and `service.name` as a resource attribute.", "category": "design", "verdict": "uncertain", "priority": "P2", ... | null |
PowerDNS__pdns__16817 | PowerDNS/pdns | 16,817 | defect | f44e1f7fc42d9db76addfe39ad63f1e5ca67efb0 | df0141a386b25ee55700516a02cd6a293f566ccd | Base64 tidy and unit test fix | ### Short description
<!-- Write a small description of what this Pull Request fixes or provides, including the issue #s -->
It turns out that the new unit test introduced in #16805 fails on some platforms due to them having less strict Base64 parsing. So neuter the test on older OpenSSL versions.
While there, t... | diff --git a/.not-formatted b/.not-formatted
index c12aa9e68eca..b9561a6b7297 100644
--- a/.not-formatted
+++ b/.not-formatted
@@ -17,8 +17,6 @@
./pdns/backends/gsql/gsqlbackend.cc
./pdns/backends/gsql/gsqlbackend.hh
./pdns/base32.cc
-./pdns/base64.cc
-./pdns/base64.hh
./pdns/bindparserclasses.hh
./pdns/calidns.cc... | 3 | 3 | 1 | [{"id": "G0", "claim": "The variable returned by BIO_read should be declared with auto rather than the explicitly spelled-out type ssize_t.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In the error path for a failed BIO_new in Base64Encode the... | null |
PowerDNS__pdns__16870 | PowerDNS/pdns | 16,870 | defect | 860443c942f3daed388bbdd9338822bb3d73dd39 | e486838bb0dd3af65c25e60fda13963b19cba169 | dnsdist: Correctly set Span ID to downstreams | ### Short description
This PR adds some late-stage packet mangling to ensure the TRACEPARENT EDNS option contains the correct (i.e. current/latest) Span ID.
It also tests this in a variety of cases.
This PR also adds more documentation about OpenTelemetry tracing.
* We do away with the (broken) possibility to have d... | diff --git a/.github/actions/spell-check/expect.txt b/.github/actions/spell-check/expect.txt
index 8cf187b457cf5..1482c52adec44 100644
--- a/.github/actions/spell-check/expect.txt
+++ b/.github/actions/spell-check/expect.txt
@@ -1448,6 +1448,7 @@ Toosarani
Toshifumi
totms
traceid
+traceparent
Travaille
treemacs
t... | 8 | 7 | 3 | [{"id": "G0", "claim": "In the added SetTraceAction documentation, the remoteLoggers bullet should read \"Note that these log messages will be empty, apart from the trace data.\" (missing comma, smoothed word order) instead of \"Note that these log messages are empty apart from the trace data.\".", "category": "documen... | null |
PowerDNS__pdns__16879 | PowerDNS/pdns | 16,879 | defect | 2993da41061589776f018d505a55cd1dde7fa4fd | f249e21c187846aac7dd8288b835a48b55adaaea | dnsdist: Add actions, methods and FFI functions to unset a tag | ### Short description
<!-- Write a small description of what this Pull Request fixes or provides, including the issue #s -->
Closes https://github.com/PowerDNS/pdns/issues/16228
### Checklist
<!-- please indicate if any of these things are done/included with this Pull Request. Not all boxes need to be checked for... | diff --git a/pdns/dnsdistdist/dnsdist-actions-definitions.yml b/pdns/dnsdistdist/dnsdist-actions-definitions.yml
index 78d6d895250a..a57fc258c219 100644
--- a/pdns/dnsdistdist/dnsdist-actions-definitions.yml
+++ b/pdns/dnsdistdist/dnsdist-actions-definitions.yml
@@ -542,3 +542,9 @@ are processed after this action"
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The :param string name: description for UnsetTagAction and UnsetTagResponseAction should read 'The name of the tag to unset' instead of the copy-pasted 'The name of the tag to set'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
PowerDNS__pdns__16880 | PowerDNS/pdns | 16,880 | defect | 2993da41061589776f018d505a55cd1dde7fa4fd | 5fca3f546623f84e1eaa3523309cd648d26aed54 | dnsdist: Implement "allowed rcodes/total" ratio dynamic rule | ### Short description
<!-- Write a small description of what this Pull Request fixes or provides, including the issue #s -->
The existing rcode ratio rules required listing all the response codes that were not allowed, and to compute the ratio for each rcode. That's useful, but what we want in most cases is to set a ... | diff --git a/pdns/dnsdistdist/dnsdist-configuration-yaml.cc b/pdns/dnsdistdist/dnsdist-configuration-yaml.cc
index dbbc93e08ef1c..12d491bf77451 100644
--- a/pdns/dnsdistdist/dnsdist-configuration-yaml.cc
+++ b/pdns/dnsdistdist/dnsdist-configuration-yaml.cc
@@ -688,6 +688,19 @@ static void loadDynamicBlockConfiguration(... | 1 | 1 | 0 | [{"id": "G0", "claim": "The doc's description of setAllowedRCodesRatio should read \"the ratio of responses with a code not present in ``rcodes``\" instead of \"of with a code\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
PowerDNS__pdns__16928 | PowerDNS/pdns | 16,928 | defect | 149538d6db00c4292d989209cadb45588c40da26 | 81442e8dad4e1bf220526043ae500dcfad9cd781 | auth: trim labels faster | ### Short description
As noticed recently, `trimToLabels(0)` can be implemented in a simpler and faster way than removing all labels one by one.
### Checklist
<!-- please indicate if any of these things are done/included with this Pull Request. Not all boxes need to be checked for the Pull Request to be accepted -... | diff --git a/pdns/dbdnsseckeeper.cc b/pdns/dbdnsseckeeper.cc
index 376c9a9493d47..0f4486b9c627b 100644
--- a/pdns/dbdnsseckeeper.cc
+++ b/pdns/dbdnsseckeeper.cc
@@ -683,7 +683,7 @@ bool DNSSECKeeper::getTSIGForAccess(const ZoneName& zone, const ComboAddress& /*
{
vector<string> keynames;
d_keymetadb->getDomainMe... | 2 | 2 | 0 | [{"id": "G0", "claim": "Adding a new trimAllLabels() function to DNSName is not justified; the trim-to-root behaviour could be handled by putting the trimToLabels(0) optimization inside trimToLabels() and/or by just using keyname->clear() in getTSIGForAccess().", "category": "design", "verdict": "supported", "priority"... | null |
PowerDNS__pdns__16948 | PowerDNS/pdns | 16,948 | defect | 0ae58cb2ae731b46c10bac30715c2cd2fde0bba8 | c6c8edb15d0889c0795476bc7ff05aae3081a27c | auth: Ensure LUA record weights are > 0 | ### Short description
This PR makes the LUA record weights use unsigned integers internally and adds a function to misc.cc to create non-zero integers.
This is a replacement for #8854.
Closes: #8854
### Checklist
<!-- please indicate if any of these things are done/included with this Pull Request. Not all boxes nee... | diff --git a/pdns/lua-record.cc b/pdns/lua-record.cc
index 0acb2c30f7c56..d11cf9c7e8f38 100644
--- a/pdns/lua-record.cc
+++ b/pdns/lua-record.cc
@@ -422,13 +422,13 @@ static T pickHashed(const ComboAddress& who, const vector<T>& items)
}
template <typename T>
-static T pickWeightedRandom(const vector< pair<int, T> ... | 2 | 2 | 0 | [{"id": "G0", "claim": "A temporary is introduced for the conversion in convIntStringPairList but not in the similar constructs in lua_pickwhashed, lua_picknamehashed and lua_pickchashed, an inconsistency that should be explained or removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "sc... | null |
PowerDNS__pdns__16956 | PowerDNS/pdns | 16,956 | defect | e00c2b95efebd19488d0e9587dd4458d80560a3d | c247e1ca9e8bf8b571ab90866ca834dd53470cd8 | Kill some code and hide the body | ### Short description
This PR, after performing innocent-looking changes to auth, dnsdist and recursor, removes the logger interfaces which lack a priority level. Nothing should use them, and they were sometimes used by mistake, due to implicit conversions from priority `enum` to `int`.
### Checklist
<!-- please i... | diff --git a/pdns/dnsdistdist/bpf-filter.cc b/pdns/dnsdistdist/bpf-filter.cc
index b279dbf5ceaa..e651a75b53ed 100644
--- a/pdns/dnsdistdist/bpf-filter.cc
+++ b/pdns/dnsdistdist/bpf-filter.cc
@@ -367,7 +367,7 @@ BPFFilter::BPFFilter(std::unordered_map<std::string, MapConfiguration>& configs,
/* Check if the current s... | 2 | 2 | 0 | [{"id": "G0", "claim": "The reconnection failure should be logged at Warning rather than Error: in dnsdist, Error is reserved for problems affecting the main service, and the corresponding legacy (non-structured) log call in the same SLOG uses warnlog.", "category": "correctness", "verdict": "supported", "priority": "P... | null |
PowerDNS__pdns__16970 | PowerDNS/pdns | 16,970 | defect | 6476df414088e563b858cdd5dd8e3865e4701d44 | fd5a7dfdb6806506e6cff60ed688923a6a1e0078 | rec: RPZ add auto cache flush of packet cache feature on RPZ updates | ### Short description
<!-- Write a small description of what this Pull Request fixes or provides, including the issue #s -->
Includes a fix to never packetcache RPZ client IP matches.
Fixes #14854
<strike>The feature is off by default, you can switch it on per RPZ, but maybe it should be on by default?</strik... | diff --git a/pdns/recursordist/docs/lua-config/rpz.rst b/pdns/recursordist/docs/lua-config/rpz.rst
index 3d2434afb82c..0438dd3bafab 100644
--- a/pdns/recursordist/docs/lua-config/rpz.rst
+++ b/pdns/recursordist/docs/lua-config/rpz.rst
@@ -202,6 +202,12 @@ zoneSizeHint
^^^^^^^^^^^^
An indication of the number of expec... | 3 | 3 | 1 | [{"id": "G0", "claim": "The fromLuaToRust default for wipePacketCache should be true rather than false.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The debug cerr line logging how many names were wiped should be removed before merging.", "categor... | null |
PowerDNS__pdns__16995 | PowerDNS/pdns | 16,995 | defect | 33296ad6285feb4cd33c260a36854b00c6822e33 | 3e15851a2a65ac98ecf50eb7e8a28160a0a5a673 | rec: two protobuf logging features: use 4 byte framesize and add strategy | ### Short description
<!-- Write a small description of what this Pull Request fixes or provides, including the issue #s -->
Protobuf messages can get large on many DNS answer records and/or many OpenTelemetry spans. To accommodate that, allow a 4 bytes frame size. Default is still 2.
Also add a `strategy`, appl... | diff --git a/.not-formatted b/.not-formatted
index b3d6937aa43f3..a5eace6b1d254 100644
--- a/.not-formatted
+++ b/.not-formatted
@@ -119,8 +119,6 @@
./pdns/query-local-address.hh
./pdns/rcpgenerator.cc
./pdns/rcpgenerator.hh
-./pdns/remote_logger.cc
-./pdns/remote_logger.hh
./pdns/resolver.cc
./pdns/resolver.hh
.... | 8 | 7 | 0 | [{"id": "G0", "claim": "Use a single queue rather than one queue per logger target, so that the feature is more of an HA feature.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The indentation of the added 'Added support for the HTTPS, SVCB and NAPTR rec... | null |
PowerDNS__pdns__17050 | PowerDNS/pdns | 17,050 | defect | 7f7cf3ce2a4400ab1a66b78fbf23eb788178955d | 423895fbb9e27f628fa486550f7100a869750a3d | dnsdist: add EDNS padding support | ### Short description
Adds support for EDNS padding from [RFC 7830],
implemented per [RFC 8467], specifically [Block-Length Padding Strategy], which is used in recursor too, requested in #10018.
Support is added for DoT, DoH, DoH3 and DoQ frontends.
[RFC 7830]: https://datatracker.ietf.org/doc/html/rfc7830
[RF... | diff --git a/pdns/dnsdistdist/Makefile.am b/pdns/dnsdistdist/Makefile.am
index 1502e91138328..856916a9ae78e 100644
--- a/pdns/dnsdistdist/Makefile.am
+++ b/pdns/dnsdistdist/Makefile.am
@@ -273,6 +273,7 @@ dnsdist_SOURCES = \
ednscookies.cc ednscookies.hh \
ednsextendederror.cc ednsextendederror.hh \
ednsoptions.c... | 4 | 4 | 4 | [{"id": "G0", "claim": "Parsing the query packet at response time does not make sense since the query is often no longer around; instead pad when the frontend has padding enabled, the response has EDNS and the query had EDNS (ednsAdded false), or store a hadEdnsPadding flag in the InternalQueryState when the query is r... | null |
PowerDNS__pdns__17115 | PowerDNS/pdns | 17,115 | defect | 726971843569c01a979c871c944d378281b32da9 | 97587163aacf91432ff4dfde00c86d6fa214a224 | dnsdist: Actually pad responses | ### Short description
It turns out that `dnsdist` would not actually pad responses with an EDNS padding option because of a logic bug. It *appeared* to do it because dnspython would automatically pad responses in `make_response` when a padding option was found in the query. `dnsdist` would pass this padded response ba... | diff --git a/pdns/dnsdistdist/dnsdist-ecs.cc b/pdns/dnsdistdist/dnsdist-ecs.cc
index 17f121e75275f..73980a0c85028 100644
--- a/pdns/dnsdistdist/dnsdist-ecs.cc
+++ b/pdns/dnsdistdist/dnsdist-ecs.cc
@@ -141,6 +141,11 @@ static bool addOrReplaceEDNSOption(std::vector<std::pair<uint16_t, std::string>>
}
}
+ if (... | 1 | 1 | 0 | [{"id": "G0", "claim": "The docstring of testDOHWithSelfAnsweredNoPaddingOpt should say 'DOH without EDNS Padding' instead of the copy-pasted 'DOH with EDNS Padding'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
PowerDNS__pdns__17124 | PowerDNS/pdns | 17,124 | defect | f232dcc4d2ffbb10efde67e81ead31c8e3501cd2 | 12644831727e8b06c53bfc66604ef0820e21a945 | dnsdist: Refactor access to DNS headers from Lua | ### Short description
<!-- Write a small description of what this Pull Request fixes or provides, including the issue #s -->
The existing interface is error-prone: it provides a pointer to a buffer that might get invalidated if the user keeps it around for too long. The new interface makes it clear when the modificat... | diff --git a/pdns/dnsdistdist/dnsdist-dnsquestion.cc b/pdns/dnsdistdist/dnsdist-dnsquestion.cc
index 4347ecff45d9..3f2fb794ec44 100644
--- a/pdns/dnsdistdist/dnsdist-dnsquestion.cc
+++ b/pdns/dnsdistdist/dnsdist-dnsquestion.cc
@@ -34,15 +34,16 @@ std::string DNSQuestion::getTrailingData() const
bool DNSQuestion::set... | 4 | 4 | 0 | [{"id": "G0", "claim": "In the prose of the new getHeader/setHeader docs, the DNSHeader cross-reference should use the :class: role instead of :ref:.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The getHeader method's signature line should read ... | null |
PowerNukkitX__PowerNukkitX__1049 | PowerNukkitX/PowerNukkitX | 1,049 | defect | 38ecbe101ea7db27a7082007b874147f35e3e255 | 6c07ac920d9d24dbd06486a28e707baa492610eb | feat: Resources pack manager refactor | - [x] Able to read pack inside of plugin (assets/resource_pack)
- [x] Refactor pack manager (pack loader)
- [x] Using java NIO ByteBuffer to encode file for better performance | diff --git a/src/main/java/cn/nukkit/Player.java b/src/main/java/cn/nukkit/Player.java
index eb44973c4b..d688b3bbde 100644
--- a/src/main/java/cn/nukkit/Player.java
+++ b/src/main/java/cn/nukkit/Player.java
@@ -3587,7 +3587,7 @@ public void onCompletion(Server server) {
ResourcePackData... | 2 | 1 | 0 | [{"id": "G0", "claim": "Use the static JsonParser.parseReader(...) instead of instantiating JsonParser and calling .parse(...) when reading the manifest.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The encryption key for a jar-plugin resource... | null |
PowerNukkitX__PowerNukkitX__912 | PowerNukkitX/PowerNukkitX | 912 | defect | 16c5f718f0362ed8deaa3bc5f3109481ab425c28 | f390d895e5af6e8621fc158ad4a4c300e825cf34 | 实体接口组件化 | ### 概述
PNX目前的实体接口设计十分的糟糕。
举个例子,对于两个都实现了EntityTamable的实体,一个是```EntityMob```,一个是```EntityAnimal```,却需要同时编写两份完全相同的实现。
此PR解决了这个问题。
### 我们是如何解决的?
新增了实体组件```EntityComponent```以及组件组```EntityComponentGroup```,我们将复杂接口的实现独立到一个单独的组件并将其与之前的接口绑定。
实体初始化时会通过反射获取此类实现的接口并在组件注册表```EntityComponentRegistery```中查询。若发现此接口有对应... | diff --git a/src/main/java/cn/nukkit/entity/Entity.java b/src/main/java/cn/nukkit/entity/Entity.java
index 3eee916d7a..553fe59fb4 100644
--- a/src/main/java/cn/nukkit/entity/Entity.java
+++ b/src/main/java/cn/nukkit/entity/Entity.java
@@ -7,6 +7,10 @@
import cn.nukkit.block.*;
import cn.nukkit.blockentity.BlockEntity... | 3 | 3 | 3 | [{"id": "G0", "claim": "requireEntityComponentGroup should cache the reflected constructor, because getConstructor is slow.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "EntityComponentGroup should get a hasComponent method, because having the exce... | null |
PowerShell__DSC__1035 | PowerShell/DSC | 1,035 | defect | 18fd5421c7c798f8034af2a8b7013d2452dc009e | 73ab4d33eedba546e7c2f585b93b8ca4d529a93c | Add support for using `get` if resource doesn't implement `export` | <!-- Anything that looks like this is a comment and can't be seen after the Pull Request is created. -->
# PR Summary
Enable exporting a configuration that specifies resources that only implement `get`. This change also makes the `OSInfo` resource only implement `get` (since `export` literally did the same opera... | diff --git a/dsc/tests/dsc_export.tests.ps1 b/dsc/tests/dsc_export.tests.ps1
index 01e55b2ba..5f930cd8e 100644
--- a/dsc/tests/dsc_export.tests.ps1
+++ b/dsc/tests/dsc_export.tests.ps1
@@ -181,4 +181,42 @@ resources:
$out.resources[0].properties.psobject.properties.name | Should -Not -Contain '_securityContext... | 3 | 2 | 1 | [{"id": "G0", "claim": "Using `input.unwrap_or(\"\")` when falling back to `get` in `invoke_export` may cause issues if the get operation requires valid input; consider passing `None` or handling the case where get requires input but export doesn't provide it.", "category": "correctness", "verdict": "uncertain", "prior... | null |
PowerShell__DSC__1124 | PowerShell/DSC | 1,124 | defect | 3f98ff71a5bcfc4fabc801a25b7f3c8e22bc8c1e | c22f78ea00baac4102c88826eb2ad74044945b95 | Add new inputKind for adapters to work against single resource instead of config | <!-- Anything that looks like this is a comment and can't be seen after the Pull Request is created. -->
# PR Summary
- the `config` property within `adapter` section of resource manifest is renamed to `inputKind` which accepts `full` (meaning config) or `single` (meaning just a single resource). However, `confi... | diff --git a/.vscode/launch.json b/.vscode/launch.json
index c0fe66904..2cde023f0 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -20,6 +20,11 @@
"type": "lldb",
"request": "attach",
"pid": "${command:pickMyProcess}",
+ "expressions": "simple",
+ ... | 4 | 2 | 0 | [{"id": "G0", "claim": "The comment on the `directory` field is missing the article 'The' and should read '/// The directory path to the resource.' to match the style of the other comments in the struct.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim... | null |
PowerShell__DSC__1162 | PowerShell/DSC | 1,162 | defect | f272f86e40a1f837b94e9978d50439fe26f2b10d | d9f140cbc5ab4acd639e20c672802a9f1e8e3aa0 | Add `invoke_dsc_resource()` MCP tool | <!-- Anything that looks like this is a comment and can't be seen after the Pull Request is created. -->
# PR Summary
This tool allows an agent to invoke a dsc resource directly.
| diff --git a/dsc/Cargo.lock b/dsc/Cargo.lock
index 34ca22ba8..8dae23f8f 100644
--- a/dsc/Cargo.lock
+++ b/dsc/Cargo.lock
@@ -2116,9 +2116,9 @@ dependencies = [
[[package]]
name = "rmcp"
-version = "0.6.4"
+version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "41ab0892f4938... | 1 | 1 | 1 | [{"id": "G0", "claim": "Reordering the pipeline to `ConvertFrom-Json | Select-Object -First 1` is incorrect because `dsc resource list` outputs JSON lines that must be selected before parsing, and this will cause JSON parsing to fail on multiple lines; the original `Select-Object -First 1 | ConvertFrom-Json` order shou... | null |
PowerShell__DSC__1282 | PowerShell/DSC | 1,282 | defect | 13107514131ef6a5e09b480d9c529b8779466240 | e70f9b1c7370a159c297f4bc0d2471899975396e | Add support for ARM params file and Bicep params file formats | <!-- Anything that looks like this is a comment and can't be seen after the Pull Request is created. -->
# PR Summary
Add import extension to support `.bicepparam` file format
Allow parameters to be in simple or ARM parameters format, however, `reference` support is not added at this time, only `value` is allowe... | diff --git a/dsc/examples/hello_world.dsc.bicep b/dsc/examples/hello_world.dsc.bicep
index 8198de447..3dd799543 100644
--- a/dsc/examples/hello_world.dsc.bicep
+++ b/dsc/examples/hello_world.dsc.bicep
@@ -2,11 +2,13 @@
targetScope = 'desiredStateConfiguration'
+param text string = 'Hello, world!'
+
// use workaro... | 5 | 5 | 0 | [{"id": "G0", "claim": "The variable `input` is shadowed in nested match blocks, making the code harder to understand and maintain; it should be renamed to distinct names like `complex_result` and `simple_result` to improve clarity.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "in... | null |
PowerShell__DSC__1309 | PowerShell/DSC | 1,309 | defect | 9e5de33e0c7127492db572f7f70afe1fd928078b | 5f6795968e99a8c930b67d9641003431a9e07450 | (GH-538) Define derive macro for `DscRepoSchema` | # PR Summary
This change:
- Defines a new `dsc-lib-jsonschema-macros` crate to publish procedural macros related to JSON Schemas.
- Defines a derive macro for the `DscRepoSchema` trait.
- Provides integration testing for the new macro.
This change doesn't migrate the implementations for the `DscRepoSchema` t... | diff --git a/Cargo.lock b/Cargo.lock
index 01b9a9d29..3e69cdeb7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -467,6 +467,16 @@ dependencies = [
"darling_macro 0.21.3",
]
+[[package]]
+name = "darling"
+version = "0.23.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "25ae13da2f202d56... | 3 | 3 | 1 | [{"id": "G0", "claim": "The `test_title` attribute in the unit test's `schema_field` is not a recognized field of `DscRepoSchemaField` (which only supports `name`, `title`, `description`, and `markdown_description`), so the line should be removed or kept only if intended as a test case for invalid attributes.", "catego... | null |
PowerShell__DSC__1366 | PowerShell/DSC | 1,366 | defect | 0598cbe790888280c1f27311aea1a562add2dc6b | 4788a863d83d0b8e7f5e0a19eed5db5c5c7c283d | Enable re-discovery of resources during deployment | <!-- Anything that looks like this is a comment and can't be seen after the Pull Request is created. -->
# PR Summary
To support the scenario where the config installs resources that will get used later, this change introduces new metadata under the `Microsoft.DSC` namespace to enable re-discovery of resources du... | diff --git a/dsc/tests/dsc_discovery.tests.ps1 b/dsc/tests/dsc_discovery.tests.ps1
index 792a48a5d..36e9c4d48 100644
--- a/dsc/tests/dsc_discovery.tests.ps1
+++ b/dsc/tests/dsc_discovery.tests.ps1
@@ -296,4 +296,47 @@ Describe 'tests for resource discovery' {
$env:DSC_RESOURCE_PATH = $null
}
... | 5 | 5 | 1 | [{"id": "G0", "claim": "The comment in copy_resource.rs misspells 'deserialize' as 'derialize'; fix the spelling so future readers understand the function's intent.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "When refresh_cache is true, find_re... | null |
PowerShell__DSC__1374 | PowerShell/DSC | 1,374 | defect | 3780743aa774e7c41582c9db3b78b8b6ce0c202d | c4b9d89b6380da2c489c1d1aa0247185fd5a131b | Update set what-if handling | <!-- Anything that looks like this is a comment and can't be seen after the Pull Request is created. -->
# PR Summary
- adds `whatIfArg` within set block in manifest
- adds deprecation warning when what-if block in manifest is used and removes what-if from capabilities for dsc list
- splits `process_args()` into ... | diff --git a/dsc/src/subcommand.rs b/dsc/src/subcommand.rs
index 1ba90ac1c..44d06a48d 100644
--- a/dsc/src/subcommand.rs
+++ b/dsc/src/subcommand.rs
@@ -784,7 +784,6 @@ pub fn list_resources(dsc: &mut DscManager, resource_name: Option<&String>, adap
(Capability::Get, "g"),
(Capability:... | 3 | 2 | 0 | [{"id": "G0", "claim": "Cloning set_method at command_resource.rs:113 is unnecessary and inefficient; the binding should stay borrowed, e.g. set_method.as_ref().", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The 'Echo resource with synthetic what-i... | null |
PowerShell__DSC__1377 | PowerShell/DSC | 1,377 | defect | a09a7b03b4f4a394654bc413a9a9d3c5072aaeb6 | 78c5310ba933695c8be5c97e960b4989467ed44f | Update delete whatIf handling | <!-- Anything that looks like this is a comment and can't be seen after the Pull Request is created. -->
# PR Summary
- adds what-if argKind to resource's delete invocation which replaces existing plumbing that would route to set.
- for the synthetic what-if for delete, it routes to `test()` (open to suggestions ... | diff --git a/dsc-bicep-ext/src/main.rs b/dsc-bicep-ext/src/main.rs
index 9f6fce0ab..734bf3063 100644
--- a/dsc-bicep-ext/src/main.rs
+++ b/dsc-bicep-ext/src/main.rs
@@ -234,7 +234,7 @@ impl BicepExtension for BicepExtensionService {
};
resource
- .delete(&identifiers)
+ .delete... | 3 | 2 | 1 | [{"id": "G0", "claim": "The `match delete_result { ... }` block moves `delete_result`, so re-using it in `if let DeleteResultKind::ResourceWhatIf(delete_res) = delete_result` inside the `_` arm will cause a use-after-move compilation error; the reviewer asks to pattern-match all variants or match by reference instead."... | null |
PowerShell__DSC__1386 | PowerShell/DSC | 1,386 | defect | 5208dcf8aca034b5abeb52d10df9d584c6ee42a8 | 24783afbbcf17ab6eab8569bcae68253c3bb4cea | add WhatIfReturns field to resource manifest | <!-- Anything that looks like this is a comment and can't be seen after the Pull Request is created. -->
# PR Summary
- add `WhatIfReturns` field to resource manifest
- update dsc test resource to utilize `WhatIfReturns` (for StateAndDiff scenario)
- update registry resource manifest to use `WhatIfArg` and `WhatI... | diff --git a/dsc/tests/dsc_resource_set.tests.ps1 b/dsc/tests/dsc_resource_set.tests.ps1
index dbf7887c2..4f3503a20 100644
--- a/dsc/tests/dsc_resource_set.tests.ps1
+++ b/dsc/tests/dsc_resource_set.tests.ps1
@@ -31,7 +31,7 @@ Describe 'Invoke a resource set directly' {
$result = dsc resource set $alias -r Tes... | 3 | 3 | 2 | [{"id": "G0", "claim": "The delete args gained a whatIfArg of \"-w\" but the registry config delete subcommand does not accept -w/--what-if, so in what-if mode the delete invocation will fail argument parsing; remove the whatIfArg or add what-if support to the delete subcommand with DeleteResult-conformant stdout.", "c... | null |
PowerShell__DSC__1401 | PowerShell/DSC | 1,401 | defect | 4ec26dfec7f087607bdba096e8e63f69e5caee51 | 43eb4ffe31c3941e1e789e124eadb00addd0f8f4 | Enable getting adapted resource schema | <!-- Anything that looks like this is a comment and can't be seen after the Pull Request is created. -->
# PR Summary
Enable retrieving schema from an adapted resource.
For an adapted resource manifest based resource, it's retrieved from the manifest which must be embedded.
For a non-manifest adapted resource... | diff --git a/dsc/tests/dsc_adapter.tests.ps1 b/dsc/tests/dsc_adapter.tests.ps1
index 63381dc3c..25508b0db 100644
--- a/dsc/tests/dsc_adapter.tests.ps1
+++ b/dsc/tests/dsc_adapter.tests.ps1
@@ -179,7 +179,7 @@ Describe 'Tests for adapter support' {
$out.path | Should -BeExactly $expectedPath
$o... | 3 | 1 | 0 | [{"id": "G0", "claim": "The schema for 'Adapted/Three' incorrectly uses AdaptedOne and should likely use AdaptedThree or the appropriate schema type for this resource.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The visibility change of process_set... | null |
PowerShell__DSC__1408 | PowerShell/DSC | 1,408 | defect | b8be5a0597aa72d373ce510427c4edbe67af159e | 8ea59ecef0b357e5d90f7c43515d2bd7925f8971 | Add support for `_refreshEnv` resource metadata to update env vars on Windows during deployment | <!-- Anything that looks like this is a comment and can't be seen after the Pull Request is created. -->
# PR Summary
On a `set` operation, if the resource returns `_refreshEnv = true`, then on Windows the system env vars are read from the registry and the user env vars are layered on top. In the case of `PATH` ... | diff --git a/Cargo.lock b/Cargo.lock
index a3716dff0..a6e92f0a4 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -784,6 +784,7 @@ dependencies = [
"path-absolutize",
"pretty_assertions",
"regex",
+ "registry",
"rt-format",
"rust-i18n",
"schemars",
@@ -969,9 +970,11 @@ name = "dsctest"
version = "0.1.0"
depende... | 8 | 6 | 4 | [{"id": "G0", "claim": "The PR must be redone so that the refreshed environment variables are written to the process environment instead of being held in a cache, because dsc needs the new PATH when winget installs an app that includes resources.", "category": "correctness", "verdict": "supported", "priority": "P1", "s... | null |
PowerShell__DSC__1417 | PowerShell/DSC | 1,417 | defect | d454e46a3ee94e1c6b49675cc36c3c277622df6b | 2ee04c6b15fe3e57677e3d3baf0a3bc19f455d17 | Move _restartRequired from metadata to a canonical property | <!-- Anything that looks like this is a comment and can't be seen after the Pull Request is created. -->
# PR Summary
- Move `_restartRequired` from metadata to a canonical property
- Moved and updated tests from metadata to a new set of tests for restartRequired
- Created new dsctest restartRequired type for t... | diff --git a/dsc/tests/dsc_metadata.tests.ps1 b/dsc/tests/dsc_metadata.tests.ps1
index 211b28448..37ff97b54 100644
--- a/dsc/tests/dsc_metadata.tests.ps1
+++ b/dsc/tests/dsc_metadata.tests.ps1
@@ -139,91 +139,6 @@ Describe 'metadata tests' {
(Get-Content $TestDrive/error.log) | Should -BeLike "*WARN*Resource r... | 5 | 4 | 3 | [{"id": "G0", "claim": "In handle_set the restart_required payload is built as a map wrapping an _restartRequired key, so the serialized output becomes nested (\"_restartRequired\": { \"_restartRequired\": [...] }) and dsc-lib cannot parse it into executionInformation.restartRequired; it should be built as the array va... | null |
PowerShell__DSC__1420 | PowerShell/DSC | 1,420 | defect | d454e46a3ee94e1c6b49675cc36c3c277622df6b | 59a67a8555904240995ece4e9e7d8a226d316d0b | Fix stateAndDiff response | <!-- Anything that looks like this is a comment and can't be seen after the Pull Request is created. -->
# PR Summary
Fix `resource test` and `resource set` failing with `"JSON: trailing characters at line 2 column 1"` when a resource manifest declares `"return": "stateAndDiff"`.
The bug was caused by `verify_... | diff --git a/dsc/tests/dsc_resource_set.tests.ps1 b/dsc/tests/dsc_resource_set.tests.ps1
index dbf7887c2..61b91da2c 100644
--- a/dsc/tests/dsc_resource_set.tests.ps1
+++ b/dsc/tests/dsc_resource_set.tests.ps1
@@ -40,4 +40,21 @@ Describe 'Invoke a resource set directly' {
$result.afterState.executionType | Shou... | 2 | 2 | 1 | [{"id": "G0", "claim": "The StateAndDiff variant should be placed after Sleep in the SubCommand enum to keep the alphabetical ordering consistent with the Schemas enum.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Test/StateAndDiff manifes... | null |
PowerShell__DSC__213 | PowerShell/DSC | 213 | defect | 5b5f41f009d3274dc328a682dd1fc4a53dac80a7 | bc357a19cb516af49507f527fe91d643e85b5ad9 | Terminate process tree on ctrl+c | <!-- Anything that looks like this is a comment and can't be seen after the Pull Request is created. -->
# PR Summary
- move `test_group_resource` under `tools` where all test specific code should go
- created `dsctest` exe to be used with `Test/Sleep` resource for manually validating `ctrl+c`. Future test reso... | diff --git a/.vscode/settings.json b/.vscode/settings.json
index 36b80c4dc..195513fff 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -8,7 +8,8 @@
"./osinfo/Cargo.toml",
"./pal/Cargo.toml",
"./registry/Cargo.toml",
- "./test_group_resource/Cargo.toml",
+ "./too... | 4 | 2 | 0 | [{"id": "G0", "claim": "The InputKind::Arg(String) change makes the schema a harder-to-grok oneOf instead of a simple enum, and michaeltlombardi proposes instead an enum value like replaceArg that always replaces a static '{{instance_json}}' token in args.", "category": "design", "verdict": "uncertain", "priority": "P2... | null |
PowerShell__DSC__252 | PowerShell/DSC | 252 | defect | 8ba2f6a0fdb233e9be48c326bab9d7d4377ff894 | cb851f116ce19ea081e0712dc7fc8e5726ee693b | Integrate expressions/functions with DSC | <!-- Anything that looks like this is a comment and can't be seen after the Pull Request is created. -->
# PR Summary
- Removed `resourceId()` regex and replaced with a function
- Add execution of expressions to get/set/test resource properties
- This integration allows use of `concat()` and `base64()` function... | diff --git a/dsc_lib/src/configure/config_doc.rs b/dsc_lib/src/configure/config_doc.rs
index cbf1b513e..9296748c9 100644
--- a/dsc_lib/src/configure/config_doc.rs
+++ b/dsc_lib/src/configure/config_doc.rs
@@ -3,7 +3,7 @@
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
-use serde_json::Value;
+use ser... | 4 | 3 | 3 | [{"id": "G0", "claim": "Questions whether the '// `identity` can be used for run-as' comment in the Resource struct is correct.", "category": "documentation", "verdict": "opposed", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "Each function registered in the FunctionDispatcher should have one end-t... | null |
PowerShell__DSC__364 | PowerShell/DSC | 364 | defect | 289d90233c0266daaf982a49522bd31f5542558b | e2e00c1dc9f12a8b95258d98addb40fe5672186e | Enable passing of secure parameters | <!-- Anything that looks like this is a comment and can't be seen after the Pull Request is created. -->
# PR Summary
- Add ability to pass `secureString` and `secureObject` parameter types
- These get passed as JSON (aligned with how you'd define them in an ARM parameters file) to resources where properties mat... | diff --git a/dsc/examples/osinfo_parameters.dsc.yaml b/dsc/examples/osinfo_parameters.dsc.yaml
index 219e1524c..bde35970d 100644
--- a/dsc/examples/osinfo_parameters.dsc.yaml
+++ b/dsc/examples/osinfo_parameters.dsc.yaml
@@ -2,7 +2,7 @@ $schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2023/08/c
p... | 1 | 1 | 0 | [{"id": "G0", "claim": "Fix the spelling of 'paramter' in the new parameter-validation test title.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
PowerShell__DSC__441 | PowerShell/DSC | 441 | defect | f7ef3cba417356b10036fa462790890b67360b80 | c4b2c5e85f6a54a3ac32fdbe4acad9bab38ef0d2 | Add resource support for what if | <!-- Anything that looks like this is a comment and can't be seen after the Pull Request is created. -->
# PR Summary
- fix #70
- example for resource participation, where `whatif` is implemented like `set` but with an additional switch arg:
```jsonc
{
"$schema": "https://aka.ms/dsc/schemas/resource_mani... | diff --git a/dsc/src/subcommand.rs b/dsc/src/subcommand.rs
index 2cf9ba5d8..3c235de28 100644
--- a/dsc/src/subcommand.rs
+++ b/dsc/src/subcommand.rs
@@ -250,7 +250,7 @@ pub fn config(subcommand: &ConfigSubCommand, parameters: &Option<String>, stdin:
if let ConfigSubCommand::Set { what_if , .. } = subcommand {
... | 8 | 4 | 4 | [{"id": "G0", "claim": "The ExecutionKind enum should not differentiate between what-if processed by the DSC engine (WhatIfDSC) and what-if processed by the resource (WhatIfResource), since there is no demonstrated scenario needing the distinction.", "category": "design", "verdict": "supported", "priority": "P1", "scop... | null |
PowerShell__DSC__444 | PowerShell/DSC | 444 | defect | b26a2237f90ce1ad9bf772fd8fb1ae675ae5b593 | dab10d137b25b6caa0a6ac4f95c65311d14e4538 | retrieve exit code info from manifest if available | <!-- Anything that looks like this is a comment and can't be seen after the Pull Request is created. -->
# PR Summary
- fix #431
<!-- Summarize your PR between here and the checklist. -->
## PR Context
- retrieve non-zero exit code description from manifest if available
- create `Test/ExitCode` resource to ... | diff --git a/dsc/tests/dsc.exit_code.tests.ps1 b/dsc/tests/dsc.exit_code.tests.ps1
new file mode 100644
index 000000000..5d0ec1fa1
--- /dev/null
+++ b/dsc/tests/dsc.exit_code.tests.ps1
@@ -0,0 +1,18 @@
+# Copyright (c) Microsoft Corporation.
+# Licensed under the MIT License.
+
+Describe 'exit code tests' {
+ It 'no... | 2 | 2 | 1 | [{"id": "G0", "claim": "The error raised for a manifest-mapped exit code should use a new DscError variant instead of the generic Command error, so the message can be changed later and it is clear the code was mapped from the manifest.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduc... | null |
PowerShell__DSC__676 | PowerShell/DSC | 676 | defect | 416c770e25b03c83c2c64e9508f08262924d8102 | 3a89a0c46820750cd3b9fdab39db2902eebe804c | Fix when resource test returns '_inDesiredState', that takes precedence | <!-- Anything that looks like this is a comment and can't be seen after the Pull Request is created. -->
# PR Summary
Even when a resource implement `test` returns `state` and contains `_inDesiredState` property, that value isn't being used and a synthetic comparison still occurs.
With this change, whether a r... | diff --git a/dsc/tests/dsc_config_test.tests.ps1 b/dsc/tests/dsc_config_test.tests.ps1
index 6b7254675..be2db81d7 100644
--- a/dsc/tests/dsc_config_test.tests.ps1
+++ b/dsc/tests/dsc_config_test.tests.ps1
@@ -32,4 +32,31 @@ Describe 'dsc config test tests' {
$out.results[0].result.differingProperties | Sho... | 4 | 3 | 2 | [{"id": "G0", "claim": "Using unwrap on serde_json::to_string in the InDesiredState subcommand may lead to a panic if serialization fails; handle the error gracefully instead.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The field name 'value' in th... | null |
PowerShell__DSC__682 | PowerShell/DSC | 682 | defect | 9550bd83403cf3ef9dfe4b5fd4e2c45bf931f744 | a019be5c48aff8d89b3e529cae9e6be6b74b0fe5 | Add `exporter` kind of resource | <!-- Anything that looks like this is a comment and can't be seen after the Pull Request is created. -->
# PR Summary
Add a new kind of resource called `exporter` kind. This resource should only implement `export` method and returns JSONLines that would be a complete instance of a `resource` in the `resources` m... | diff --git a/dsc/tests/dsc_export.tests.ps1 b/dsc/tests/dsc_export.tests.ps1
index bf0325d26..9010fbd03 100644
--- a/dsc/tests/dsc_export.tests.ps1
+++ b/dsc/tests/dsc_export.tests.ps1
@@ -105,4 +105,30 @@ Describe 'resource export tests' {
$config_with_process_list.'resources' | Should -Not -BeNullOrEmpty
... | 3 | 1 | 0 | [{"id": "G0", "claim": "The exporter subcommand prints each JSON resource directly but returns an empty string, which may lead to inconsistent output handling compared to other subcommands; capture the JSON output in a variable and return it consistently.", "category": "design", "verdict": "uncertain", "priority": "P2"... | null |
PowerShell__DSC__884 | PowerShell/DSC | 884 | defect | 202aed506d6c014ef2bc9ce2e47f59018e335d8e | f898d01a649650b8d08a1f746e999dc6fa1c1c11 | Surface _kind, _securityContext, and _name from resource during export | <!-- Anything that looks like this is a comment and can't be seen after the Pull Request is created. -->
# PR Summary
- update `export` to surface specific properties from resource at top-level, while also removing those properties from the lower-level object
- add corresponding pester test
<!-- Summarize your PR... | diff --git a/dsc/src/subcommand.rs b/dsc/src/subcommand.rs
index 37ad5a1ed..d8ac8e48a 100644
--- a/dsc/src/subcommand.rs
+++ b/dsc/src/subcommand.rs
@@ -141,8 +141,7 @@ pub fn config_test(configurator: &mut Configurator, format: Option<&OutputFormat
name: test_result.name,
... | 3 | 3 | 2 | [{"id": "G0", "claim": "securityContext is already part of the resource's metadata, so it should not be surfaced as a separate `securityContext` field on the exported Resource (SteveL later specified it belongs within the `Microsoft.DSC` metadata, where it already exists).", "category": "design", "verdict": "supported"... | null |
PowerShell__DSC__947 | PowerShell/DSC | 947 | defect | 9dee19915487a83cf86688a9d7d907757a80207d | c59a3d2ec542ec12d51f9e3397224fe29068eb5a | Enable resources to return metadata | <!-- Anything that looks like this is a comment and can't be seen after the Pull Request is created. -->
# PR Summary
Enable resources to return `_metadata` object that gets populated into the resource `metadata` field. Reserved `Microsoft.DSC` property is ignored, but a warning message is emitted. Works for al... | diff --git a/dsc/tests/dsc_metadata.tests.ps1 b/dsc/tests/dsc_metadata.tests.ps1
new file mode 100644
index 000000000..76ef9da6a
--- /dev/null
+++ b/dsc/tests/dsc_metadata.tests.ps1
@@ -0,0 +1,74 @@
+# Copyright (c) Microsoft Corporation.
+# Licensed under the MIT License.
+
+Describe 'metadata tests' {
+ It 'resour... | 4 | 2 | 0 | [{"id": "G0", "claim": "The 'not an object' diagnostics should reference the '_metadata' property the code actually reads, not 'metadata' (M001 asks this for the Parser error in get_metadata_from_result, M002 for the matching locale strings).", "category": "documentation", "verdict": "supported", "priority": "P2", "sco... | null |
PrairieLearn__PrairieLearn__11037 | PrairieLearn/PrairieLearn | 11,037 | defect | f0eb2ca3a3c4442ff66d5481cecf858427443ad5 | 021aa6b07ab466f1dd50cc22c538cb3f12fc6d35 | Fix workspace access for public question previews | issue reported on Slack: https://prairielearn.slack.com/archives/C0XBTPZMZ/p1734108508562149
Workspaces were not accessible from public question previews. | diff --git a/apps/prairielearn/src/middlewares/authzWorkspace.sql b/apps/prairielearn/src/middlewares/authzWorkspace.sql
index 6f3de2aec2a..21a205f8b2f 100644
--- a/apps/prairielearn/src/middlewares/authzWorkspace.sql
+++ b/apps/prairielearn/src/middlewares/authzWorkspace.sql
@@ -5,6 +5,8 @@ SELECT
v.course_instance... | 4 | 3 | 3 | [{"id": "G0", "claim": "The new branch for publicly shared questions performs no authorization at all, and we do want some amount of auth here since we don't want any person to be able to access any workspace and do things; it might be as simple as only allowing people to access workspaces created by their own user id.... | null |
PrairieLearn__PrairieLearn__11811 | PrairieLearn/PrairieLearn | 11,811 | defect | 07baf72cacd33d5eff5c3d7545fcb72f3651e075 | c9685a3a38b3abd29baa1b13d6c16e52fdabda29 | Add workspace options to question settings page | This PR intends to add workspace options as editable fields in the question settings page. | diff --git a/apps/prairielearn/assets/scripts/instructorQuestionSettingsClient.ts b/apps/prairielearn/assets/scripts/instructorQuestionSettingsClient.ts
index 30b778aacc9..0d59ac45cdf 100644
--- a/apps/prairielearn/assets/scripts/instructorQuestionSettingsClient.ts
+++ b/apps/prairielearn/assets/scripts/instructorQuest... | 30 | 21 | 4 | [{"id": "G0", "claim": "JSON.parse on workspace_environment can throw on a malformed payload and bubble up as an unhandled exception (500); guard it with try/catch and return a user-friendly 400 validation error.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1",... | null |
PrairieLearn__PrairieLearn__11930 | PrairieLearn/PrairieLearn | 11,930 | defect | 346df956d2c44ad12b35ee970ec18830d08fafe2 | 0bdef5950480c5a7161750e0092e5d769b192c53 | Batched AI grading | As a part of the discussion in #11884, we are removing the AI grading page and merging the buttons back into the manual grading page. Also adding support for batched AI grading where the instructor can select a subset of the instance questions and only use AI grading on these selected items. | diff --git a/apps/prairielearn/assets/scripts/instructorAssessmentManualGradingAssessmentQuestionClient.ts b/apps/prairielearn/assets/scripts/instructorAssessmentManualGradingAssessmentQuestionClient.ts
index 04b0aaba13f..cca8431dbc6 100644
--- a/apps/prairielearn/assets/scripts/instructorAssessmentManualGradingAssessm... | 9 | 9 | 1 | [{"id": "G0", "claim": "The backend handler for the 'ai_grade_assessment_selected' batch action is only a TODO placeholder while the frontend 'Grade Selected' option is fully implemented, so the handler needs to be implemented.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"... | null |
PrairieLearn__PrairieLearn__11947 | PrairieLearn/PrairieLearn | 11,947 | defect | db2208a6bc96c2ce70385cab6f52fe0c5cac732d | e7dfc17d23c0e1a2bb7ec1ce5fbf3f08fdd5226f | Display access rule comments | This will allow instructors to see comments on access rules from their JSON files. This uses the newly added JSON comment columns to render the access rules for course instances and assessments in the access rules tables.
 are not properly serialized before being shown in the popover: the component renders the raw comment and the page call sites call .toString(), which may mishandle complex objects and arrays.", "category": "correctness", "verdict": "supported", "priority": "P1... | null |
PrairieLearn__PrairieLearn__11962 | PrairieLearn/PrairieLearn | 11,962 | defect | eabb5ee4a4bbb247c8a81f499c6cebe0368e2391 | 3e00123b2c9ed58f240f26f638e5e6fe5525e2db | Refactor Mustache template extraction for AI question generation | Rather than mucking around with regular expressions, it's more reliable to to use Mustache's built-in parser. It produces an AST that we can traverse and gather information from. | diff --git a/apps/prairielearn/src/ee/lib/validateHTML.test.ts b/apps/prairielearn/src/ee/lib/validateHTML.test.ts
new file mode 100644
index 00000000000..d2e382c2566
--- /dev/null
+++ b/apps/prairielearn/src/ee/lib/validateHTML.test.ts
@@ -0,0 +1,53 @@
+import { assert } from 'chai';
+
+import { extractMustacheTemplat... | 10 | 2 | 1 | [{"id": "G0", "claim": "Switching the correct-answer check from the extractor regex to the anchored regex means values that merely contain a Mustache template (e.g. correct-answer=\"foo {{ bar }}\") are no longer rejected, only whole-string templates are, which the author thinks is probably fine but floats changing if ... | null |
PrairieLearn__PrairieLearn__12000 | PrairieLearn/PrairieLearn | 12,000 | defect | cc022b8616b33ee31668c54e00e17615fd62dfee | 5e4f1d7ea7fd178f05ef2a8b5991fdbc22d321da | Prepare for Vitest | I'm pulling some of the smaller changes out of #11943 so they can be more easily reviewed. This will leave that PR with mostly mechanical changes from Mocha's API to Vitest's. | diff --git a/.dependency-cruiser.js b/.dependency-cruiser.js
index 6ba1a5f1130..b8dc1694fa6 100644
--- a/.dependency-cruiser.js
+++ b/.dependency-cruiser.js
@@ -71,6 +71,7 @@ module.exports = {
pathNot: [
'.(spec|test).(js|mjs|cjs|ts|ls|coffee|litcoffee|coffee.md)$',
'src/tests/',
+ ... | 1 | 1 | 0 | [{"id": "G0", "claim": "Pull the devMode default's NODE_ENV-check logic out into a const at the top of the file (the reviewer notes this is a nit).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
PrairieLearn__PrairieLearn__12009 | PrairieLearn/PrairieLearn | 12,009 | defect | f0b6963d07602e67417d004d42c11865fa6ed02c | 3e43f98a5d6c48be85b4e31273df26fae2a7182a | LTI 1.3 refactor fetch error handling | This PR refactors the LTI 1.3 `fetchRetry` to:
- throw errors directly to the calling function to handle
- only retry on error messages that suggest we should retry
- put the most useful error message from the LMS into the thrown error message
It updates the error handling in `updateLti13Scores` and the instruc... | diff --git a/apps/prairielearn/src/ee/lib/lti13.ts b/apps/prairielearn/src/ee/lib/lti13.ts
index 04fcf48be3f..9ea718eb367 100644
--- a/apps/prairielearn/src/ee/lib/lti13.ts
+++ b/apps/prairielearn/src/ee/lib/lti13.ts
@@ -564,13 +564,6 @@ export async function linkAssessment(
});
}
-/* Throttling notes
-// https:/... | 5 | 5 | 2 | [{"id": "G0", "claim": "The branch propagates LTI errors to HTMX where they only surface in the browser console, and the author thinks the PR can do better by displaying a user-visible error.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The author ques... | null |
PrairieLearn__PrairieLearn__12236 | PrairieLearn/PrairieLearn | 12,236 | defect | afd8838d4bfd3e57bc3bb7cecf3dded7bfe0e9ff | 5a2fda0d48f076c39557099b912dfd1beded5369 | Add ability to delete all AI grading jobs for an assessment question | This PR adds the ability to delete all AI grading jobs for a specific assessment question. This is meant primarily to support demos, where we'd want to sit in a loop of grading with AI and then deleting the gradings so we can grade again.
The behavior here is surprisingly tricky. @mwest1066 and I discussed potential... | diff --git a/apps/prairielearn/src/ee/lib/ai-grading/ai-grading-stats.sql b/apps/prairielearn/src/ee/lib/ai-grading/ai-grading-stats.sql
index 99352198e40..187a43f6365 100644
--- a/apps/prairielearn/src/ee/lib/ai-grading/ai-grading-stats.sql
+++ b/apps/prairielearn/src/ee/lib/ai-grading/ai-grading-stats.sql
@@ -55,6 +5... | 15 | 7 | 3 | [{"id": "G0", "claim": "The mechanism for point declines with submission attempts should only apply to auto-grading, i.e. `highest_submission_score` should be refactored to track only auto points, because with manual grading the new manual score may be lower than the old one.", "category": "correctness", "verdict": "su... | null |
PrairieLearn__PrairieLearn__12247 | PrairieLearn/PrairieLearn | 12,247 | defect | b9e28eca4f83f2d99080d8350c01f93ceb24dd92 | b2eca4dc0ad414aa47217ee3af463697e323f82b | Add safe client-side types for database objects | The motivation for this change is to ensure that we aren't passing context to the frontend accidentally for some common types, we will start using these branded types instead. | diff --git a/apps/prairielearn/src/components/SyncErrorsAndWarnings.html.ts b/apps/prairielearn/src/components/SyncErrorsAndWarnings.html.ts
index 6d321e714f5..7d4d807380c 100644
--- a/apps/prairielearn/src/components/SyncErrorsAndWarnings.html.ts
+++ b/apps/prairielearn/src/components/SyncErrorsAndWarnings.html.ts
@@ ... | 8 | 6 | 3 | [{"id": "G0", "claim": "The new types should be created from the existing schemas via pick or omit, rather than building the existing schemas from the new ones.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It is fine to expose UIN to students, so the s... | null |
PrairieLearn__PrairieLearn__12259 | PrairieLearn/PrairieLearn | 12,259 | defect | 6bc1fba23d8666b9dba95b261b584b776889a017 | 0f73c2f6a6d5d96639d41ae9f32ad16c9ea41b67 | Enable faster development iteration with new Vite plugin | https://github.com/axe-me/vite-plugin-node/pull/127 never happened, so we are going to fork this package and add the features to our copy.
Used with #11914 | diff --git a/.changeset/real-dolls-eat.md b/.changeset/real-dolls-eat.md
new file mode 100644
index 00000000000..2c9a2378e29
--- /dev/null
+++ b/.changeset/real-dolls-eat.md
@@ -0,0 +1,5 @@
+---
+'@prairielearn/vite-plugin-express': major
+---
+
+Create plugin for reloading server with vite
diff --git a/packages/vite-p... | 14 | 5 | 0 | [{"id": "G0", "claim": "The README of the new published package lacks essential documentation and should be expanded with installation instructions, usage examples, configuration options, API documentation and license information.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introd... | null |
PrairieLearn__PrairieLearn__12371 | PrairieLearn/PrairieLearn | 12,371 | defect | 1e388ddf6b92bcfc7af283ae87a3bab81ae841e6 | 19293a31f875d570aaec0a9408338002c2c75bb4 | Add eslint-stylistic rules | Adds rules for:
- preferring `ref` first in JSX
- preferring `on*` handlers last in JSX
- preferring self-closing tags in JSX
- preferring 'base' attributes last in JSX | diff --git a/apps/prairielearn/assets/scripts/instructorAiGenerateDraftsSampleQuestions.tsx b/apps/prairielearn/assets/scripts/instructorAiGenerateDraftsSampleQuestions.tsx
index 6d780aa8795..782faa5ff3f 100644
--- a/apps/prairielearn/assets/scripts/instructorAiGenerateDraftsSampleQuestions.tsx
+++ b/apps/prairielearn/... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new stylistic rules overlap with Prettier (e.g. no-multi-spaces next to prettier-ignore in freeform.ts and the space-in-parens disable in pl-threejs.js), forcing eslint-disable comments, and the config should be limited to the rules Prettier does not cover.", "category": "design", "verdict":... | null |
PrairieLearn__PrairieLearn__12373 | PrairieLearn/PrairieLearn | 12,373 | defect | 1e388ddf6b92bcfc7af283ae87a3bab81ae841e6 | 11cfd0b34ced0cdd67650acf727d1afd4cfd8b67 | Brand db-types and page-content | - I'm pretty happy with this approach but open to suggestions. | diff --git a/apps/prairielearn/src/lib/client/page-context.test.ts b/apps/prairielearn/src/lib/client/page-context.test.ts
index 645c3a473b0..b37a0158099 100644
--- a/apps/prairielearn/src/lib/client/page-context.test.ts
+++ b/apps/prairielearn/src/lib/client/page-context.test.ts
@@ -57,7 +57,7 @@ describe('getPageCont... | 3 | 3 | 0 | [{"id": "G0", "claim": "Use Zod's built-in branded types (schema.brand) instead of the hand-rolled brandWith/Branded pipe.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "brandWith should accept the schema as an argument directly rather than returning a t... | null |
PrairieLearn__PrairieLearn__12404 | PrairieLearn/PrairieLearn | 12,404 | defect | 0703974f8eee5e14e54857cf00d34294ef31cac2 | b1aae9290edbc66439e550972dbaebcb823ed032 | Ensure all schemas list all columns in db-types | To support #12402, we should ensure that all schemas:
~~1) exist~~
2) have an identical key set to the original table
Doing this will ensure we have accurate types throughout our codebase, which helps catch bugs.
~~This PR sets up the machinery for (1) and (2), but only enables (1) for now.~~
~~Some of the... | diff --git a/apps/prairielearn/src/lib/db-types.test.ts b/apps/prairielearn/src/lib/db-types.test.ts
new file mode 100644
index 00000000000..a6d7bf56a84
--- /dev/null
+++ b/apps/prairielearn/src/lib/db-types.test.ts
@@ -0,0 +1,267 @@
+import _ from 'lodash';
+import { afterAll, beforeAll, describe, it } from 'vitest';
... | 7 | 4 | 2 | [{"id": "G0", "claim": "WorkspaceHostLogSchema's state enum uses workspace states instead of workspace host states, which could cause validation errors when logging host state changes.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The ExamModeNetwo... | null |
PrairieLearn__PrairieLearn__12446 | PrairieLearn/PrairieLearn | 12,446 | defect | be39f8829e5dbef9d8f50b5537b763469929b451 | 454b3256b7a78409412abf4afc5abe02f9baa81e | Convert question creation modal to Preact; improve UX | This PR rewrites the question creation modal in Preact. I did this with the goal of introducing a radio-card kind of selector for the starting point (empty, template, etc), which was much easier to implement with Preact.
On wide viewports:
<img width="820" height="738" alt="Screenshot 2025-07-18 at 13 50 44" src="h... | diff --git a/apps/prairielearn/assets/scripts/esm-bundles/react-fragments/CreateQuestionModalContents.ts b/apps/prairielearn/assets/scripts/esm-bundles/react-fragments/CreateQuestionModalContents.ts
new file mode 100644
index 00000000000..535de3837e2
--- /dev/null
+++ b/apps/prairielearn/assets/scripts/esm-bundles/reac... | 5 | 4 | 2 | [{"id": "G0", "claim": "The `onKeyDown` prop of `SelectableCard` should be required, since the only caller always passes a defined handler.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `cardRef` prop of `SelectableCard` should be required, since it... | null |
PrairieLearn__PrairieLearn__12625 | PrairieLearn/PrairieLearn | 12,625 | defect | b811c2fb6de6012db940c47448a70fc73ac1cecf | 63264809a3fc4ba0f5d572edffc7d909e867b540 | Make TypeScript settings stricter | - Caught an interesting type error with `variant.broken_at` and `makeVariant`. | diff --git a/apps/grader-host/src/index.ts b/apps/grader-host/src/index.ts
index a85d31e15c2..b2d840ea707 100644
--- a/apps/grader-host/src/index.ts
+++ b/apps/grader-host/src/index.ts
@@ -83,7 +83,7 @@ async.series(
max: config.postgresqlPoolSize,
idleTimeoutMillis: config.postgresqlIdleTimeoutMillis... | 21 | 8 | 0 | [{"id": "G0", "claim": "The `broken_at: variant.broken ? new Date() : null` ternary in makeVariant's prepare call sits in a branch where `variant.broken` is false so it is always null and misleading; it should just pass `broken_at: null`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope... | null |
PrairieLearn__PrairieLearn__12644 | PrairieLearn/PrairieLearn | 12,644 | defect | 77536d4eee743c4636877c0515e5e34260a2b813 | 8790d982a22d1a2631cbacdf77cefc60c4f895de | Improved test-failure reporting in vitest | # Description
- Adds mechanisms to hide `logger.error` output, and uses those mechanisms to avoid expected console output. Previously, console error output was shown in cases where it was expected (e.g. tests for broken/unauthorized users). That behavior was confusing.
- Adds a custom console logger transport that ... | diff --git a/apps/prairielearn/src/lib/config.ts b/apps/prairielearn/src/lib/config.ts
index 9abcdcc68bf..a725cf6d999 100644
--- a/apps/prairielearn/src/lib/config.ts
+++ b/apps/prairielearn/src/lib/config.ts
@@ -85,6 +85,12 @@ export const ConfigSchema = z.object({
* normal usage.
*/
nonVolatileRedisUrl: z.... | 12 | 10 | 7 | [{"id": "G0", "claim": "The error transport's filter requires both outputStdout and outputStderr to be strings, so a log entry carrying only one of the two streams could be incorrectly filtered out.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Bec... | null |
PrairieLearn__PrairieLearn__12648 | PrairieLearn/PrairieLearn | 12,648 | defect | b9a6153e4a4d51e9ebba17534f2420bc048f6429 | afead5808d34458ce1e3f17b46846d23a150235a | Update course instance schema for self-enrollment and LTI enforcement | - Add self-enrollment settings to the schema & DB
- Adds LTI enforcement settings to the DB
Testing performed:
- Test suite for self-enrollment
- No testing done for LTI enforcement (just a schema change) | diff --git a/apps/prairielearn/src/schemas/infoAssessment.ts b/apps/prairielearn/src/schemas/infoAssessment.ts
index 397838f6ae7..ad02bf97783 100644
--- a/apps/prairielearn/src/schemas/infoAssessment.ts
+++ b/apps/prairielearn/src/schemas/infoAssessment.ts
@@ -132,6 +132,7 @@ const QuestionPointsJsonSchema = z.object({... | 9 | 5 | 1 | [{"id": "G0", "claim": "The syncing code is incorrectly typed: it uses Zod output types although Zod never actually parses the data (the JSON schema/AJV does, without filling defaults), so the types do not match the runtime values.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "pre_exi... | null |
PrairieLearn__PrairieLearn__12692 | PrairieLearn/PrairieLearn | 12,692 | defect | e16dc8d4c2fcc3c6746dc39cdc42a16ceea8fb96 | 4a068f0b11e7e0e2b78e458c49eb46569db6ca54 | Add execute and executeRow helpers, cleanup SQL that isn't using models | - Cleans up some missed conversions to typed SQL
- Helpers pulled out of https://github.com/PrairieLearn/PrairieLearn/pull/12627 | diff --git a/.changeset/twelve-kids-fetch.md b/.changeset/twelve-kids-fetch.md
new file mode 100644
index 00000000000..ae776b458f6
--- /dev/null
+++ b/.changeset/twelve-kids-fetch.md
@@ -0,0 +1,5 @@
+---
+'@prairielearn/postgres': minor
+---
+
+Add `execute` and `executeRow` helpers that don't return the actual values ... | 8 | 2 | 0 | [{"id": "G0", "claim": "The workspace_url_rewrite lookup can be simplified by assigning the awaited queryRow result (with ?? true) directly instead of going through an intermediate variable.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The tes... | null |
PrairieLearn__PrairieLearn__12736 | PrairieLearn/PrairieLearn | 12,736 | defect | a7df8b185339983148cbb41d420b7aa58c653fe1 | c96e7c21d256a58c349464b69607a453ace80ee7 | Remove all reads of duration_stat_threshold_labels and _seconds | These two columns are only used in the statistics page, and can be easily computed on demand from the `duration_stat_thresholds` column. Once this is merged and deployed, future PRs can (in this order):
* remove all updates of these columns;
* this should be safe because, even though the columns are not-null, the... | diff --git a/apps/prairielearn/src/lib/assessment.sql b/apps/prairielearn/src/lib/assessment.sql
index ba48f6ed16e..3292ddda1b2 100644
--- a/apps/prairielearn/src/lib/assessment.sql
+++ b/apps/prairielearn/src/lib/assessment.sql
@@ -747,6 +747,7 @@ SET
duration_stat_mean = duration_stats.mean,
duration_stat_media... | 5 | 1 | 0 | [{"id": "G0", "claim": "Add a concrete TODO reference (issue/PR) to the deprecation comment in assessment.sql planning removal of the *_threshold_seconds/_threshold_labels writes after the rollout window.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "cl... | null |
PrairieLearn__PrairieLearn__12746 | PrairieLearn/PrairieLearn | 12,746 | defect | 2ed4859983be0774a63f5c6fc9920b71f80bf410 | 9bfd7c043754e43a1b997631c1b4bf541d2675e4 | Allow instructors to bypass plan grant requirements | While testing their course after enabling student billing, an instructor noticed that they were unable to use "Student view" without paying. While I think this was originally intentional to allow an instructor to see exactly what their student sees, the instructor raised the valid point that they'd still like to use "S... | diff --git a/apps/prairielearn/src/ee/lib/billing/plan-grants.ts b/apps/prairielearn/src/ee/lib/billing/plan-grants.ts
index 108beadae9e..4fc5e7c874c 100644
--- a/apps/prairielearn/src/ee/lib/billing/plan-grants.ts
+++ b/apps/prairielearn/src/ee/lib/billing/plan-grants.ts
@@ -25,10 +25,18 @@ function userHasRole(authz_... | 4 | 1 | 0 | [{"id": "G0", "claim": "Callers pass inconsistent arguments to userHasRole — checkPlanGrantsForQuestion passes res instead of authz_data, so with the current predicate the bypass can always evaluate to true, bypassing plan-grant checks; the call sites should be cleaned up for consistency.", "category": "correctness", "... | null |
PrairieLearn__PrairieLearn__12786 | PrairieLearn/PrairieLearn | 12,786 | defect | f1edac31f0d321099eca617ef2f388c0f080ec9b | 0f7d758f748053ea265224a04e122cf9b1f23606 | Add enrollment management feature flag | # Description
#12655 was merged, but it adds features that aren't available yet. I had a similar story in #12604, but that PR is still in review. In order to deploy correctly, we should gate #12655 behind a feature flag and local development. This will ensure that instructors don't get confused.
This PR does thre... | diff --git a/apps/prairielearn/src/lib/client/page-context.ts b/apps/prairielearn/src/lib/client/page-context.ts
index f8fc402dfd0..5db646ada0d 100644
--- a/apps/prairielearn/src/lib/client/page-context.ts
+++ b/apps/prairielearn/src/lib/client/page-context.ts
@@ -49,6 +49,7 @@ const RawPageContextSchema = z.object({
... | 13 | 2 | 1 | [{"id": "G0", "claim": "Gate the POST action generate_enrollment_code (and any endpoints returning the self-enrollment link) server-side, e.g. return 403 when the enrollment-management feature/admin check fails, because UI gating alone is not sufficient.", "category": "security", "verdict": "opposed", "priority": "P1",... | null |
PrairieLearn__PrairieLearn__12801 | PrairieLearn/PrairieLearn | 12,801 | defect | 2f5ce1f09adcb5c8aeeaf1b40308d2e0ec54ac08 | d292860c335ec2553a4604123b5a91e8d9c64d08 | Add unique constraint for enrollment code | # Description
Drops and recreates the enrollment code column. This is safer than simply adding the constraint, because it ensures that existing enrollment codes don't need to be unique. This will be followed up by a backfill of the enrollment codes.
As discussed with @nwalters512 , the chance that this constraint... | diff --git a/apps/prairielearn/src/ee/models/enrollment.test.ts b/apps/prairielearn/src/ee/models/enrollment.test.ts
index 82193b79b64..a6f59a8b825 100644
--- a/apps/prairielearn/src/ee/models/enrollment.test.ts
+++ b/apps/prairielearn/src/ee/models/enrollment.test.ts
@@ -4,7 +4,7 @@ import { queryRow } from '@prairiel... | 12 | 5 | 1 | [{"id": "G0", "claim": "Mapping async callbacks without awaiting leaves courseInstanceParams as an array of Promises, so Postgres will receive unresolved Promises and blow up at runtime; wrap the map in await Promise.all.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"i... | null |
PrairieLearn__PrairieLearn__12814 | PrairieLearn/PrairieLearn | 12,814 | defect | 54806e0ba366c56a722cc6ffab22a0e61cbf830e | af57697b7326c37343a74db71bc4a4cc634fa335 | Raise error for group max/min size of 0 | # Description
Closes #12735 . This was a bug noticed in #12675 . Cursor wrote both the test cases, and the fix, and they were manually vetted. This has the possibility to raise a new error/warning for existing courses that relied on this bug, but I think that we do want to do that.
<!--
- Summarize your changes ... | diff --git a/apps/prairielearn/src/sync/course-db.ts b/apps/prairielearn/src/sync/course-db.ts
index 06c1a3c3e6e..aed5a8b09cb 100644
--- a/apps/prairielearn/src/sync/course-db.ts
+++ b/apps/prairielearn/src/sync/course-db.ts
@@ -1248,19 +1248,19 @@ function validateAssessment({
// Ensure values for role minimum ... | 4 | 3 | 0 | [{"id": "G0", "claim": "Add a test covering the `role.maximum > assessment.groupMaxSize` error branch when `groupMaxSize` is 0, since the PR's switch to `!= null` makes that guard fire for 0-valued bounds but nothing tests it.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"... | null |
PrairieLearn__PrairieLearn__12821 | PrairieLearn/PrairieLearn | 12,821 | defect | 15f8596e486662ba5abf24975c1a5bc0b56cbcfc | 197942c1521eafe6aa9627e9507e1f566b8e3dde | Fix `triesPerVariant` cascading for question alternatives | # Description
#12675 introduces a bug where a question with an alternative that doesn't set `triesPerVariant` incorrectly sets the `triesPerVariant` to `1` instead of `question.triesPerVariant`. This was caught in #12820 , which we were hoping to enable to catch this exact sort of bug. The code was manually vetted, ... | diff --git a/apps/prairielearn/src/schemas/infoAssessment.ts b/apps/prairielearn/src/schemas/infoAssessment.ts
index 1474742c7a3..f3cbbb7669c 100644
--- a/apps/prairielearn/src/schemas/infoAssessment.ts
+++ b/apps/prairielearn/src/schemas/infoAssessment.ts
@@ -140,9 +140,9 @@ export const QuestionAlternativeJsonSchema ... | 4 | 1 | 1 | [{"id": "G0", "claim": "The alternative-level triesPerVariant should enforce integer values: add .int() to the TS schema and change the JSON schema type from number to integer.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The question-level triesP... | null |
PrairieLearn__PrairieLearn__12854 | PrairieLearn/PrairieLearn | 12,854 | defect | 066aeb140df1b5da04ba1343a410481d31084278 | 473834e59bec4756fd8b5148c00f0072d2fd0ebd | Add student invitations to home page | # Description
Close #12722
This PR intends to allow students accept and reject invitations from the homepage.
Changes:
- `PageContext` was split up to allow for a version without `AuthzData`
- `Home.html.tsx` is now Hydrated
- Invitations show on the homepage with a reject and accept button. The reject but... | diff --git a/apps/prairielearn/assets/scripts/esm-bundles/react-fragments/Home.ts b/apps/prairielearn/assets/scripts/esm-bundles/react-fragments/Home.ts
new file mode 100644
index 00000000000..318fbb5780f
--- /dev/null
+++ b/apps/prairielearn/assets/scripts/esm-bundles/react-fragments/Home.ts
@@ -0,0 +1,4 @@
+import { ... | 16 | 4 | 1 | [{"id": "G0", "claim": "The new getPageContext(res.locals) default overload is risky: flipping withAuthzData's default to false would break existing callers that rely on authz_data, so the default should stay true (or every caller updated to opt in), and res.locals must populate the full PageContext fields or those cal... | null |
PrairieLearn__PrairieLearn__12901 | PrairieLearn/PrairieLearn | 12,901 | defect | 76309d66f3f167feab88f1bafe3297cc63294c36 | 469f561287c3c8e6988fa10bd8a25ba2a749da19 | Auto-enroll invited users | <!--
Etiquette and expectations for contributions can be found here:
https://prairielearn.readthedocs.io/en/latest/contributing
-->
# Description
If a user is invited, and visits a course instance, they should be automatically enrolled.
The test suite was written by GPT-5.
<!--
- Summarize your chan... | diff --git a/apps/prairielearn/src/models/enrollment.sql b/apps/prairielearn/src/models/enrollment.sql
index 92225fb5d14..9c6ae170d09 100644
--- a/apps/prairielearn/src/models/enrollment.sql
+++ b/apps/prairielearn/src/models/enrollment.sql
@@ -5,6 +5,17 @@ VALUES
($user_id, $course_instance_id, 'joined', now())
ON... | 3 | 3 | 3 | [{"id": "G0", "claim": "The enroll_invited_user_in_course_instance UPDATE only matches rows where user_id = $user_id, so typical invited rows with user_id NULL and pending_uid set are never upgraded, and ensure_enrollment then inserts a second joined row; fix by also matching pending_uid and setting user_id on the upgr... | null |
PrairieLearn__PrairieLearn__12918 | PrairieLearn/PrairieLearn | 12,918 | defect | 99a7a69fb2c964046e7978b2d9015bd468cb3bb2 | 2d995b44415e11b790df17ac58d6641204b61b60 | Add new boolean for `beforeDateEnabled` | <!--
Etiquette and expectations for contributions can be found here:
https://prairielearn.readthedocs.io/en/latest/contributing
-->
# Description
We discussed on slack that we want a boolean for the UI that represents if `beforeDate` is enabled.
<!--
- Summarize your changes and explain the rationale f... | diff --git a/apps/prairielearn/src/lib/client/page-context.test.ts b/apps/prairielearn/src/lib/client/page-context.test.ts
index dd6ded562d2..f996eaea800 100644
--- a/apps/prairielearn/src/lib/client/page-context.test.ts
+++ b/apps/prairielearn/src/lib/client/page-context.test.ts
@@ -196,6 +196,7 @@ describe('getCourse... | 5 | 2 | 2 | [{"id": "G0", "claim": "The migration column name `self_enrollment_enabled_before_date_enabled` is gross, though the reviewer could not immediately think of anything better.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new beforeDate descrip... | null |
PrairieLearn__PrairieLearn__12978 | PrairieLearn/PrairieLearn | 12,978 | defect | 267a0f29e2c0acdc96df1c91af428e346b38f289 | 9033c89d69175f56cdb8d00ad436bd2496d60b88 | Disallow variant resetting on Exam assessments | # Description
Part of #12977. While this doesn't address the underlying issue, it'll at least prevent instructors from putting assessment instances into a weird state.
Here's the modal that shows up when one tries to click "Reset question variants" on an assessment:
<img width="821" height="262" alt="Screensho... | diff --git a/apps/prairielearn/src/pages/instructorAssessmentInstance/instructorAssessmentInstance.html.tsx b/apps/prairielearn/src/pages/instructorAssessmentInstance/instructorAssessmentInstance.html.tsx
index a26e7f2c7a2..236fbf1585c 100644
--- a/apps/prairielearn/src/pages/instructorAssessmentInstance/instructorAsse... | 3 | 1 | 1 | [{"id": "G0", "claim": "The test changes in instructorBreakVariants.test.ts were a misguided attempt to get the tests passing and should be reworked into two tests: one asserting variant resets work for a homework, and one asserting resets are blocked for an exam.", "category": "testing", "verdict": "supported", "prior... | null |
PrairieLearn__PrairieLearn__13046 | PrairieLearn/PrairieLearn | 13,046 | defect | dbd534313272f1d547589112ecb4cad169094600 | 4b8f86f2b3e3c9b51c0d7923142f7ff4ce211715 | Replace content permission dropdown with popover in staff page | <!--
Etiquette and expectations for contributions can be found here:
https://prairielearn.readthedocs.io/en/latest/contributing
-->
# Description
Resolves #12998. Replaces the dropdown used to select content permission with a popover containing a form. This makes the placement of the options more flexible ... | diff --git a/apps/prairielearn/src/pages/instructorCourseAdminStaff/instructorCourseAdminStaff.html.tsx b/apps/prairielearn/src/pages/instructorCourseAdminStaff/instructorCourseAdminStaff.html.tsx
index 8f045f2477d..a931c48ac6c 100644
--- a/apps/prairielearn/src/pages/instructorCourseAdminStaff/instructorCourseAdminSta... | 9 | 2 | 1 | [{"id": "G0", "claim": "Suggests using radio buttons for the permission selection control in the new popover, based on the screenshot.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The 'None' radio button never gets checked, so opening the popover and s... | null |
PrairieLearn__PrairieLearn__13063 | PrairieLearn/PrairieLearn | 13,063 | defect | 523b1a9d375f8c8e14b917eaa7195921e5ae388a | 2dcb808f2aee7b5f7e7d64167018edd566f18859 | Begin work to remove self_enrollment_enabled_before_date_enabled | # Description
Originally we thought it'd be nice to persist settings values even when a given setting was disabled, which led to the introduction of this `self_enrollment_enabled_before_date_enabled` boolean (and the corresponding `selfEnrollment.beforeDateEnabled` value in JSON). However, after further discussion w... | diff --git a/apps/prairielearn/src/lib/client/page-context.test.ts b/apps/prairielearn/src/lib/client/page-context.test.ts
index 64b30f7af19..85b497563d5 100644
--- a/apps/prairielearn/src/lib/client/page-context.test.ts
+++ b/apps/prairielearn/src/lib/client/page-context.test.ts
@@ -196,7 +196,8 @@ describe('getCourse... | 4 | 2 | 1 | [{"id": "G0", "claim": "The selfEnrollment.beforeDate schema field would read better renamed with an 'allow' prefix (e.g. allowBeforeDate), since the current JSON reads strangely.", "category": "naming", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "An extra blank line was a... | null |
PrairieLearn__PrairieLearn__13093 | PrairieLearn/PrairieLearn | 13,093 | defect | e346df8fd895e7aa6f4804c14e1ab58544a98a09 | 877f38528accb550b02df86b553b27ca35238734 | Add `enrollment_id` to `audit_events` | <!--
Etiquette and expectations for contributions can be found here:
https://prairielearn.readthedocs.io/en/latest/contributing
-->
# Description
We want to record more detailed events for enrollments, especially surrounding invitations/rejections/transitions there. This adds a column to track that informa... | diff --git a/apps/prairielearn/src/lib/db-types.ts b/apps/prairielearn/src/lib/db-types.ts
index c7f7a9a4f09..f6f45dbdddb 100644
--- a/apps/prairielearn/src/lib/db-types.ts
+++ b/apps/prairielearn/src/lib/db-types.ts
@@ -479,6 +479,7 @@ export const AuditEventSchema = z.object({
course_id: IdSchema.nullable(),
co... | 2 | 2 | 2 | [{"id": "G0", "claim": "The audit_events_enrollment_id_fkey should use ON DELETE SET NULL instead of ON DELETE CASCADE so audit rows survive when an enrollment row is deleted, matching every other audit_events foreign key.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": ... | null |
PrairieLearn__PrairieLearn__13103 | PrairieLearn/PrairieLearn | 13,103 | defect | 50bc4036e17280b8a1431fdad39a228ae9892754 | d996cbbe0b4fee775ebb2465a55b5dcce8dac3ac | Add ability to restrict self-enrollment to users from the same institution | <!--
Etiquette and expectations for contributions can be found here:
https://prairielearn.readthedocs.io/en/latest/contributing
-->
# Description
Adds a new `restrictToInstitution` key to `selfEnrollment`. This will be used as a replacement for the course-instance level control that will no longer exist af... | diff --git a/apps/prairielearn/src/lib/client/page-context.test.ts b/apps/prairielearn/src/lib/client/page-context.test.ts
index cc8bffc037c..ad2da82a0f3 100644
--- a/apps/prairielearn/src/lib/client/page-context.test.ts
+++ b/apps/prairielearn/src/lib/client/page-context.test.ts
@@ -195,6 +195,7 @@ describe('getCourse... | 6 | 3 | 0 | [{"id": "G0", "claim": "Bug: createInstitution builds uid_regexp from an unescaped shortName, so regex metacharacters (e.g. '.' in \"example.com\") match any character and overmatch, and shortName should be escaped to be treated literally.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": ... | null |
PrairieLearn__PrairieLearn__13220 | PrairieLearn/PrairieLearn | 13,220 | defect | ddb72516d10f70ea55bbda920938252a370d0b4f | de67d215a5d27b804031b7ce18b1e1b1b486411e | Rename dangerous full authz function | # Description
I'm pulling this change out of #13173 to make that PR easier to review.
# Testing
None; I'm letting TypeScript do its thing. | diff --git a/apps/prairielearn/src/ee/models/enrollment.test.ts b/apps/prairielearn/src/ee/models/enrollment.test.ts
index 29f393588ee..be4f4fb2e2e 100644
--- a/apps/prairielearn/src/ee/models/enrollment.test.ts
+++ b/apps/prairielearn/src/ee/models/enrollment.test.ts
@@ -2,7 +2,7 @@ import { afterEach, assert, beforeE... | 1 | 1 | 1 | [{"id": "G0", "claim": "This test calls ensureEnrollment with dangerousFullSystemAuthz() but requests 'Student', which the updated hasRole only permits for 'System' and 'Any', so the call will fail at runtime when assertHasRole is called.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "... | null |
PrairieLearn__PrairieLearn__13302 | PrairieLearn/PrairieLearn | 13,302 | defect | 3ac2a2d9cfec31674a3a216d157310d346376a89 | e611d34537c351db0a2f9a95105af54236ccb766 | Shift dates in tests/access rules to start at 1900 | <!--
Etiquette and expectations for contributions can be found here:
https://prairielearn.readthedocs.io/en/latest/contributing
-->
# Description
Dates before 1883 have extremely weird behavior for timezone offsets. This can cause JS to not parse them correctly. To avoid this, ahead of #12975, I shifted al... | diff --git a/apps/prairielearn/src/tests/access.test.ts b/apps/prairielearn/src/tests/access.test.ts
index c17b79d2054..7fa5c8b127e 100644
--- a/apps/prairielearn/src/tests/access.test.ts
+++ b/apps/prairielearn/src/tests/access.test.ts
@@ -33,12 +33,12 @@ describe('Access control', { timeout: 20000 }, function () {
... | 5 | 3 | 0 | [{"id": "G0", "claim": "The test dates in effectiveUser.test.ts are not round (e.g. 1950-01-19 instead of the year 2000, or Jan 19 instead of Jan 1), which the reviewer finds aesthetically bothersome.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim"... | null |
PrairieLearn__PrairieLearn__13303 | PrairieLearn/PrairieLearn | 13,303 | defect | 3ac2a2d9cfec31674a3a216d157310d346376a89 | d8c9e03599d1d67f7759e81ceb9e720a515e4eba | Publishing UI support | <!--
Etiquette and expectations for contributions can be found here:
https://prairielearn.readthedocs.io/en/latest/contributing
-->
# Description
This adds code to support publishing in all parts of PrairieLearn, most importantly the homepage, and LTI enrollment.
It also fixes a few bugs/changes things ... | diff --git a/.changeset/sixty-cars-bathe.md b/.changeset/sixty-cars-bathe.md
new file mode 100644
index 00000000000..fc2402ffba0
--- /dev/null
+++ b/.changeset/sixty-cars-bathe.md
@@ -0,0 +1,5 @@
+---
+'@prairielearn/formatter': minor
+---
+
+Allow passing Temporal.PlainDateTime to formatDate and formatDateFriendly
dif... | 10 | 6 | 1 | [{"id": "G0", "claim": "modernStudentCourses drops any course whose publishing_end_date is NULL, so open-ended offerings would disappear entirely from the student home page.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The end-date logic picks the e... | null |
PrairieLearn__PrairieLearn__13378 | PrairieLearn/PrairieLearn | 13,378 | defect | c6ad45326ffe3fe2e306e8bf4ed5ede1f1636818 | dc53a470dfdd23f9b9de35f1e1c7c62a5256346b | Move updateCourseRepo to a model function | # Description
This is being pulled out of #13171. The same `update_course_repo` query was being used separately 8 times. This PR intends to move this to a model function and reduce duplication.
# Testing
The existing tests should be sufficient.
| diff --git a/apps/prairielearn/src/tests/instructorAssessments.test.sql b/apps/prairielearn/src/tests/helperCourseRepo.sql
similarity index 100%
rename from apps/prairielearn/src/tests/instructorAssessments.test.sql
rename to apps/prairielearn/src/tests/helperCourseRepo.sql
diff --git a/apps/prairielearn/src/tests/help... | 5 | 4 | 1 | [{"id": "G0", "claim": "Since updateCourseRepo is used exclusively by tests and hardcodes the course id, it should be a test helper function rather than a model function.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The helper could optionally get a JS... | null |
PrairieLearn__PrairieLearn__13431 | PrairieLearn/PrairieLearn | 13,431 | defect | faaec9605f7fbb967b426aff8339507b1f0f148d | 7ed0e7dc1073a8b7a2f9ffafc281c74ff88208a7 | Rubric grader guidelines | <!--
Etiquette and expectations for contributions can be found here:
https://prairielearn.readthedocs.io/en/latest/contributing
-->
# Description
Closes #13418.
Added customizable grader guidelines for rubrics.
How it appears in rubric settings:
<img width="1477" height="271" alt="Screenshot 2025-1... | diff --git a/apps/prairielearn/src/components/RubricSettings.tsx b/apps/prairielearn/src/components/RubricSettings.tsx
index 4b59a40c310..bb6871401fa 100644
--- a/apps/prairielearn/src/components/RubricSettings.tsx
+++ b/apps/prairielearn/src/components/RubricSettings.tsx
@@ -28,12 +28,16 @@ export function RubricSetti... | 12 | 8 | 4 | [{"id": "G0", "claim": "The new column should not be specific to AI grading; rename `ai_grading_additional_context` to something like `grader_guidelines` so it can also carry general instructions for human TAs.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim... | null |
PrairieLearn__PrairieLearn__13434 | PrairieLearn/PrairieLearn | 13,434 | defect | faaec9605f7fbb967b426aff8339507b1f0f148d | 2406dea5cabf6fbc7f10654fff6e9c43d3490ff6 | Create course instance modal | <!--
Etiquette and expectations for contributions can be found here:
https://prairielearn.readthedocs.io/en/latest/contributing
-->
# Description
This closes #13241. Requires `shortName` and `longName` to be unique.
<!--
- Summarize your changes and explain the rationale for making them.
- Include any... | diff --git a/apps/prairielearn/src/components/CourseInstancePublishingForm.tsx b/apps/prairielearn/src/components/CourseInstancePublishingForm.tsx
index f48cdbe1a87..49a0aba0f7b 100644
--- a/apps/prairielearn/src/components/CourseInstancePublishingForm.tsx
+++ b/apps/prairielearn/src/components/CourseInstancePublishing... | 7 | 6 | 2 | [{"id": "G0", "claim": "The public course instance copy modal should use the exact same publishing settings heading and description text as the new create course instance modal.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "short_name and long_name shou... | null |
PrairieLearn__PrairieLearn__13493 | PrairieLearn/PrairieLearn | 13,493 | defect | 35fbbca27bd93554bdb2f2e1b0183b98157241df | 491f69e759b2c9a7223e2a765fc61cdfc34f641c | Fix JSX within Playwright | <!--
Etiquette and expectations for contributions can be found here:
https://prairielearn.readthedocs.io/en/latest/contributing
-->
# Description
This PR fixes a bug where Preact wasn't used when Playwright is running. This fixes that bug, which makes it actually possible to write tests. The process manage... | diff --git a/.gitignore b/.gitignore
index abf7e63e34a..dd5fe01869e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -111,6 +111,7 @@ coverage.xml
.vitest-reports
## Playwright
+test-results/
apps/prairielearn/test-results/
apps/prairielearn/playwright/.cache/
diff --git a/apps/prairielearn/src/tests/e2e/check-worki... | 2 | 1 | 1 | [{"id": "G0", "claim": "The header rule pattern '* @jsxImportSource @prairielearn/preact-cjs ' includes a leading asterisk that does not appear in the actual pragma used in test files, so the pattern should be changed to ' @jsxImportSource @prairielearn/preact-cjs '.", "category": "correctness", "verdict": "opposed", "... | null |
PrairieLearn__PrairieLearn__13498 | PrairieLearn/PrairieLearn | 13,498 | defect | c3f76cf2d291c56133477c4dcfb78b45a95b3fc2 | 54216a4db84d6eb540d260f2c6708f77c7481b12 | Add course roles to authz pattern | <!--
Etiquette and expectations for contributions can be found here:
https://prairielearn.readthedocs.io/en/latest/contributing
-->
# Description
This PR converts `selectCourseInstancesWithStaffAccess` to use the new model pattern. To support this, the authz code was refactored and additional tests were ad... | diff --git a/apps/prairielearn/src/ee/pages/lti13CourseNavigation/lti13CourseNavigation.ts b/apps/prairielearn/src/ee/pages/lti13CourseNavigation/lti13CourseNavigation.ts
index 0e0e7441324..1c6a3e218db 100644
--- a/apps/prairielearn/src/ee/pages/lti13CourseNavigation/lti13CourseNavigation.ts
+++ b/apps/prairielearn/src... | 7 | 1 | 1 | [{"id": "G0", "claim": "In selectCourseInstancesWithStaffAccess, when impersonating, both queries use authzData.user.user_id, so the two queries return the same rows and the intersection logic is ineffective; the first query should use authzData.authn_user.user_id (and authn_is_administrator) so results include only in... | null |
PrairieLearn__PrairieLearn__13612 | PrairieLearn/PrairieLearn | 13,612 | defect | 1ded1c3cfda184048fb312dd4696a88c41a6cbea | 1b45647d9d8f53513d38c8aed75de5235c4a08e2 | Fix Issues tab link for questions with spaces in QID | <!--
Etiquette and expectations for contributions can be found here:
https://prairielearn.readthedocs.io/en/latest/contributing
-->
# Description
As reported on Slack. When a QID has a space in its name, the "Issues" tab will have the proper issue count, but opening it will not show issues associated to th... | diff --git a/apps/prairielearn/assets/scripts/lib/questionsTable.tsx b/apps/prairielearn/assets/scripts/lib/questionsTable.tsx
index 9156f5b7bbb..0d8eb7c416a 100644
--- a/apps/prairielearn/assets/scripts/lib/questionsTable.tsx
+++ b/apps/prairielearn/assets/scripts/lib/questionsTable.tsx
@@ -3,6 +3,7 @@ import { html, ... | 3 | 1 | 0 | [{"id": "G0", "claim": "The space at the end of the QID becomes part of the preview link, which looks weird when there is an issue badge, so the closing tag was moved to keep the space outside the anchor.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Th... | null |
PrairieLearn__PrairieLearn__13642 | PrairieLearn/PrairieLearn | 13,642 | defect | f1df40ab962645b6902f59b59ca71cbf9eb2105b | fe43e41f9502ca27eb043e51638ed568c272417f | Fix spelling and capitalization for user-facing text, docs | <!--
Etiquette and expectations for contributions can be found here:
https://prairielearn.readthedocs.io/en/latest/contributing
-->
# Description
While browsing on the UI, I noticed a minor spelling issue in one of the user-facing pages.
This prompted me to just run a quick scan for similar issues in other ... | diff --git a/apps/prairielearn/elements/pl-big-o-input/big_o_utils.py b/apps/prairielearn/elements/pl-big-o-input/big_o_utils.py
index 3730f26e741..c97b608772e 100644
--- a/apps/prairielearn/elements/pl-big-o-input/big_o_utils.py
+++ b/apps/prairielearn/elements/pl-big-o-input/big_o_utils.py
@@ -19,7 +19,7 @@
"You... | 2 | 2 | 1 | [{"id": "G0", "claim": "The explanatory text in exampleCourse/questions/element/unitsInput/question.html uses comparison=\"sigfigs\" while the actual element in the file uses comparison=\"sigfig\", so the text should use the same attribute value as the example element.", "category": "documentation", "verdict": "support... | null |
PrairieLearn__PrairieLearn__13689 | PrairieLearn/PrairieLearn | 13,689 | defect | 34330445e70eb5167ce074a8ea2f29b258b7ed9e | a53f6fc9aff3ab42c78c7b0600bb2751674aa3cb | Remove UUIDs from infoCourse.json | <!--
Etiquette and expectations for contributions can be found here:
https://prairielearn.readthedocs.io/en/latest/contributing
-->
# Description
Resolves #13309. Currently, UUIDs in infoCourse.json are only used in practice to identify the example course, and are ignored everywhere else.
This PR change... | diff --git a/apps/prairielearn/src/lib/config.ts b/apps/prairielearn/src/lib/config.ts
index c007fc8d1b1..6c2aa8dedda 100644
--- a/apps/prairielearn/src/lib/config.ts
+++ b/apps/prairielearn/src/lib/config.ts
@@ -616,6 +616,7 @@ export const ConfigSchema = z.object({
'claude-sonnet-4-5': { input: 3, cachedInput:... | 6 | 3 | 0 | [{"id": "G0", "claim": "Removing the UUIDs from the shipped infoCourse.json files in the same PR could cause a sync error on servers running an older version, so consider deferring those removals to a future PR.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "c... | null |
PrairieLearn__PrairieLearn__13704 | PrairieLearn/PrairieLearn | 13,704 | defect | 70b7ef470cdb2372e2d0a7c1eda6dab48d9597f5 | f286bdc327b94360c9244d1aecca354127b7b8b4 | Workaround for JSON parsing error during Gemini AI grading | <!--
Etiquette and expectations for contributions can be found here:
https://prairielearn.readthedocs.io/en/latest/contributing
-->
# Description
During AI grading, if a rubric item key contains escaped backslashes, Google Gemini generates unescaped backslashes in the JSON response, leading to a JSON parsing... | diff --git a/apps/prairielearn/src/components/ServerJobProgress/ServerJobProgressBars.tsx b/apps/prairielearn/src/components/ServerJobProgress/ServerJobProgressBars.tsx
index 96eb1387f0b..10beaa7c383 100644
--- a/apps/prairielearn/src/components/ServerJobProgress/ServerJobProgressBars.tsx
+++ b/apps/prairielearn/src/co... | 5 | 2 | 0 | [{"id": "G0", "claim": "The replaceAll('\\\\', '\\\\\\\\') escaping doubles all backslashes indiscriminately, so it will corrupt already-escaped sequences such as valid escaped newlines and escaped backslashes in the rubric_items segment.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "in... | null |
PrairieLearn__PrairieLearn__13714 | PrairieLearn/PrairieLearn | 13,714 | defect | 4d8a2a739f38a1005e3e3a067bbc0711d07d9fa4 | 4cca964498ddab614e802c4ba045b24f7b68b3c5 | Add `teams` schema | <!--
Etiquette and expectations for contributions can be found here:
https://prairielearn.readthedocs.io/en/latest/contributing
-->
# Description
Closes #13545 . Initial implementation done by Claude. I then looked through the diff and made edits.
<!--
- Summarize your changes and explain the rationa... | diff --git a/apps/prairielearn/src/schemas/infoAssessment.ts b/apps/prairielearn/src/schemas/infoAssessment.ts
index e5941703eb3..902252a90fd 100644
--- a/apps/prairielearn/src/schemas/infoAssessment.ts
+++ b/apps/prairielearn/src/schemas/infoAssessment.ts
@@ -35,6 +35,89 @@ export const GroupRoleJsonSchema = z
export... | 7 | 7 | 2 | [{"id": "G0", "claim": "The new teams validation duplicates the legacy checks, and the author proposes rewriting groups to teams so the validation runs once (the maintainer notes some legacy checks like validateViewAndSubmitRolePermissions have no teams equivalent).", "category": "design", "verdict": "supported", "prio... | null |
PrairieLearn__PrairieLearn__13718 | PrairieLearn/PrairieLearn | 13,718 | defect | 1d1f773cce0e4754eb0629521a00dbefbeb94ae0 | f956da6d97002703d347026283197ca56588bfd4 | Update docs, tests, assessments to modern `groups` config | <!--
Etiquette and expectations for contributions can be found here:
https://prairielearn.readthedocs.io/en/latest/contributing
-->
# Description
Now that we have a modern groups config, this updates the documentation to recommend this config for instructors.
<!--
- Summarize your changes and explain... | diff --git a/apps/prairielearn/src/schemas/infoAssessment.ts b/apps/prairielearn/src/schemas/infoAssessment.ts
index 67b7656d164..30a09356beb 100644
--- a/apps/prairielearn/src/schemas/infoAssessment.ts
+++ b/apps/prairielearn/src/schemas/infoAssessment.ts
@@ -35,9 +35,9 @@ export const GroupRoleJsonSchema = z
export ... | 5 | 3 | 2 | [{"id": "G0", "claim": "The docs give the single `groups` property its own 'Group work' section; it should instead be lifted up into the main assessment-properties table with a link down to the detailed section.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1"... | null |
PrairieLearn__PrairieLearn__13728 | PrairieLearn/PrairieLearn | 13,728 | defect | 0b579cdf80cfc029fb058ec1795bb4cde578c6c9 | dd78c36ecfcbbeebb4b353c895025407c8a75628 | Add billing eligibility check | <!--
Etiquette and expectations for contributions can be found here:
https://prairielearn.readthedocs.io/en/latest/contributing
-->
# Description
This adds an eligibility check to the billing page before they pay. Done primarily by Claude.
<!--
- Summarize your changes and explain the rationale for m... | diff --git a/apps/prairielearn/src/ee/pages/studentCourseInstanceUpgrade/studentCourseInstanceUpgrade.ts b/apps/prairielearn/src/ee/pages/studentCourseInstanceUpgrade/studentCourseInstanceUpgrade.ts
index ae255404772..84a7e369915 100644
--- a/apps/prairielearn/src/ee/pages/studentCourseInstanceUpgrade/studentCourseInst... | 6 | 4 | 0 | [{"id": "G0", "claim": "In the POST handler, a plain HttpStatusError would probably be sufficient instead of responding with a 403 and an EnrollmentPage, though the current approach is also fine.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "ch... | null |
PrairieLearn__PrairieLearn__13784 | PrairieLearn/PrairieLearn | 13,784 | defect | 8a9c908fc22c3d57736a6616ea08df352dc9e973 | 23fd07dff2982183976b350e314dffe8cf9dada2 | Skip self-enrollment checks for enrolled/invited users on billing page | # Description
Allow already-enrolled and invited students to proceed to the billing page without being blocked by self-enrollment restrictions. Students with `'joined'` or `'invited'` status have already passed (or bypassed) enrollment eligibility checks, so self-enrollment settings like institution restrictions and... | diff --git a/apps/prairielearn/src/lib/enrollment-eligibility.test.ts b/apps/prairielearn/src/lib/enrollment-eligibility.test.ts
index 4e4a57a264f..9ca437b159e 100644
--- a/apps/prairielearn/src/lib/enrollment-eligibility.test.ts
+++ b/apps/prairielearn/src/lib/enrollment-eligibility.test.ts
@@ -127,4 +127,44 @@ descri... | 2 | 1 | 0 | [{"id": "G0", "claim": "The JSDoc on checkEnrollmentEligibility (and probably some of the comments above it) is no longer accurate now that the PR added the early joined/invited eligibility path, since it still lists only the old checks and says the function does not check whether the user is already enrolled.", "categ... | null |
PrairieLearn__PrairieLearn__13794 | PrairieLearn/PrairieLearn | 13,794 | defect | a8d393831b8836d08301ab108af3b34cb57b42ea | e1949e6fb7bb1a2e76ada080fb2ff6f894ffc94d | Refactor git test setup into reusable helper functions | # Description
Refactors repeated git repository initialization code from 10 test files into reusable helper functions in `helperCourse.ts`. This eliminates ~30 lines of duplicate setup code per test file and centralizes git configuration logic.
- Added `createCourseRepoFixture(options)` - Creates a test course re... | diff --git a/apps/prairielearn/src/tests/courseEditor.test.ts b/apps/prairielearn/src/tests/courseEditor.test.ts
index 52199559aa4..e847ecdc054 100644
--- a/apps/prairielearn/src/tests/courseEditor.test.ts
+++ b/apps/prairielearn/src/tests/courseEditor.test.ts
@@ -6,7 +6,6 @@ import { execa } from 'execa';
import fs f... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new helper pattern should not use module-level functions that return parts of global state (courseLiveDir(), sharingCourseOriginDir(), and similar accessors); the reviewer questions why this pattern exists at all.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "in... | null |
PrairieLearn__PrairieLearn__13831 | PrairieLearn/PrairieLearn | 13,831 | defect | 489a167e1a5e5729a2e4eb9658499aef68c6fd5c | 00ca5e627fe2b5826b0695c1e7f6ac28707916f8 | Rewrite user settings page in React | # Description
Converts the user settings page from HTML templates to React components, including the token generation and deletion modals. The purchases card has also been converted to React. This modernizes the page while maintaining existing functionality.
I'm doing this now so that I can more easily add automa... | diff --git a/apps/prairielearn/assets/scripts/esm-bundles/hydrated-components/UserSettingsPage.ts b/apps/prairielearn/assets/scripts/esm-bundles/hydrated-components/UserSettingsPage.ts
new file mode 100644
index 00000000000..876860dc52b
--- /dev/null
+++ b/apps/prairielearn/assets/scripts/esm-bundles/hydrated-component... | 10 | 6 | 1 | [{"id": "G0", "claim": "The MathJax menu-reset functionality may no longer be needed and could be removed from the rewritten page.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G4", "claim": "'shows up' should be 'show up' to agree with the plural subject 'formulas'.", ... | null |
PrairieLearn__PrairieLearn__13909 | PrairieLearn/PrairieLearn | 13,909 | defect | f4ebd2061a92f31451e5ae413948035e93d89da8 | 45492c8bc0722e415235816cf8cd1350eff0e83f | Extract question settings components to React | <!--
Etiquette and expectations for contributions can be found here:
https://prairielearn.readthedocs.io/en/latest/contributing
-->
# Description
Converts all question settings components to React. This will make it easier to convert the main form. `QuestionSettingsCardFooter` is now a React component.
... | diff --git a/AGENTS.md b/AGENTS.md
index e9393f3a65a..34ec014edf4 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -134,6 +134,7 @@ The PrairieLearn web application renders HTML in one of two ways:
- A file at `./foo.tsx` should be imported as `./foo.js` from other files.
- Use `clsx` in React components.
+- Inline prop d... | 11 | 10 | 0 | [{"id": "G0", "claim": "Add aria-hidden to the copy icon so screen readers do not announce it, for parity with the delete icon.", "category": "accessibility", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The AGENTS.md bullet should drop 'of' so it reads 'outside the component... | null |
PrairieLearn__PrairieLearn__13915 | PrairieLearn/PrairieLearn | 13,915 | defect | 1d1f773cce0e4754eb0629521a00dbefbeb94ae0 | bc512ffd408ff934a150ca99423ca59a4026dfd8 | Rename teams schema -> groups | # Description
Renames the `teams` schema property to `groups` in the `infoAssessment.json` schema. This change also:
- Renames all related types (e.g., `TeamRoleJsonSchema` → `GroupsRoleJsonSchema`)
- Updates student permission properties (e.g., `canCreateTeam` → `canCreateGroup`)
- Marks legacy group propertie... | diff --git a/apps/prairielearn/src/schemas/infoAssessment.ts b/apps/prairielearn/src/schemas/infoAssessment.ts
index 67b7656d164..30a09356beb 100644
--- a/apps/prairielearn/src/schemas/infoAssessment.ts
+++ b/apps/prairielearn/src/schemas/infoAssessment.ts
@@ -35,9 +35,9 @@ export const GroupRoleJsonSchema = z
export ... | 3 | 2 | 0 | [{"id": "G0", "claim": "The PR says it closes issue #13917, but that issue requests renaming the groups schema to teams — the opposite direction — so the intended direction should be verified and either the linked issue reference or the implementation updated.", "category": "documentation", "verdict": "uncertain", "pri... | null |
PrairieLearn__PrairieLearn__13992 | PrairieLearn/PrairieLearn | 13,992 | defect | 648e67cccb0110e4f1fefea3b351be59d5667ede | f97a4b8e17250a0cb20dcdee7c01fd10ab6ea3c1 | Add non-null constraint to `zones.number` | # Description
Add a database migration to make the `number` column in the `zones` table NOT NULL. This change has been verified to not affect production data, as no rows contain NULL values for this column. Noted in #13991.
Updates related type definitions to reflect the schema change:
- Updated `ZoneSchema` in ... | diff --git a/apps/prairielearn/src/lib/client/safe-db-types.test.ts b/apps/prairielearn/src/lib/client/safe-db-types.test.ts
index 21cd61838916..ac977399fc5d 100644
--- a/apps/prairielearn/src/lib/client/safe-db-types.test.ts
+++ b/apps/prairielearn/src/lib/client/safe-db-types.test.ts
@@ -516,7 +516,7 @@ const minimal... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new migration should follow the repository's established pattern (as in the 20260115 courses__branch migration pair) of first adding a NOT VALID constraint, then validating it before setting the column NOT NULL, instead of a single direct SET NOT NULL.", "category": "design", "verdict": "sup... | null |
PrairieLearn__PrairieLearn__14073 | PrairieLearn/PrairieLearn | 14,073 | defect | 0b3881df2c2a9b8bf03dae731ca36c03dfff1193 | f0ff64af055fb3ae6dbc9dd867cc79e4dd0c7b06 | Update submission panel after rubric settings change | ## Description
When rubric item points/text are changed via the rubric settings card, the grading panel refreshes but the submission panel (feedback card + submission block) still shows stale rubric data. This fixes that by also rendering and injecting the updated submission panel. Closes #14053
## Testing
An ... | diff --git a/apps/prairielearn/src/components/RubricSettings.tsx b/apps/prairielearn/src/components/RubricSettings.tsx
index c3bbe16e202..25044912a6b 100644
--- a/apps/prairielearn/src/components/RubricSettings.tsx
+++ b/apps/prairielearn/src/components/RubricSettings.tsx
@@ -485,6 +485,19 @@ export function RubricSett... | 6 | 6 | 4 | [{"id": "G0", "claim": "The DOM-replacement method used for the submission panel does not run the panel's scripts, which may affect the visibility of some elements; the reviewer asks to use jQuery or replicate the script-running functionality of question.ts.", "category": "correctness", "verdict": "supported", "priorit... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.