Skip to content

Alter Database, CouchDB Setup Fixes, Feedback Actions, GraphQL program at Java 11

Compare
Choose a tag to compare
@retrodaredevil retrodaredevil released this 31 Oct 20:32
· 439 commits to master since this release

Update 2021-12-11: This release (and previous releases) contains the CVE-2021-44228 vulnerability. See #49 for more info.

This release has a LOT of changes. Many will go unnoticed, and many new features will remain undocumented until I get around to well, documenting them.

These changes likely won't mean anything for most users of SolarThing, so updating likely will not fix any bugs or add any new featuers, however I always recommend updating so that if there is a problem, you can let me know!

If you aren't going to update, that's OK, however I do recommend that you run the CouchDB setup program again: instructions. If you have already ran CouchDB setup once before, give it the same usernames as before, and it will not prompt to create a new user. Running the CouchDB program again will make your database more secure from unauthorized changes.

Alter:

  • Added alter database
  • Scheduled commands now work

Automation

  • Added action to handle the alter database
  • Slack chatbot
    • Can now request to schedule commands and cancel those commands

Commands:

  • The JSON of requesting commands has some additions. Notably, the execution reason, which will commonly contain a source from the open database
  • While a command is being executed, an action can now send feedback to solarthing_events to indicate that something has happened.
  • Clients that are requesting commands must be updated in order to work. The expected (root) dateMillis and encrypted dateMillis must now be the same in order for a command to be processed.
  • Even unauthorized commands are now only processed once, instead of being processed repeatedly during the 5 minutes they are queried.

GraphQL

  • Bug fix for CouchDB queries that affected solcast data queries

Internal Changes:

  • GraphQL program requires Java 11
  • Updated to gradle 7