aglinxinyuan commented on code in PR #9498:
URL: https://github.com/apache/texera/pull/9498#discussion_r4596870113


##########
common/config/src/test/scala/org/apache/texera/common/config/DefaultsConfigSpec.scala:
##########
@@ -38,6 +38,19 @@ class DefaultsConfigSpec extends AnyFlatSpec with Matchers {
     )
   }
 
+  // A REGULAR account can run code on the server, so open sign-up has to be a 
deployment's own
+  // choice rather than what it gets by leaving USER_SYS_INVITE_ONLY unset.
+  "DefaultsConfig.inviteOnly" should "default to invite-only" in {
+    ifUnset("USER_SYS_INVITE_ONLY")(DefaultsConfig.inviteOnly shouldBe true)
+  }
+
+  // HOCON also accepts yes/no and on/off, but every reader of the stored row 
expects true or false:
+  // the backend reads anything else as on, and so does the admin card. Holds 
whatever spelling
+  // USER_SYS_INVITE_ONLY uses; run with USER_SYS_INVITE_ONLY=off to exercise 
it.
+  it should "seed the parsed value, not the variable's own spelling" in {

Review Comment:
   Update: the `gui.tabs.*_enabled` fix is in this PR after all, rather than a 
follow-up stacked on it (0ab4393b27, d8d05628bc). `DefaultsConfig` now seeds 
every leaf `default.conf` declares as a boolean through `getBoolean`, which 
replaces the invite_only special case, so `GUI_TABS_HUB_ENABLED=on` stores 
`true`. A value that is not a boolean now stops config-service at startup, as 
`USER_SYS_INVITE_ONLY` already did. Since this landed after your approval, 
could you take a second look at those two commits?
   
   _🤖 Addressed by [Claude Code](https://claude.com/claude-code)_
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to