Skip to content

Instantly share code, notes, and snippets.

View KristofferTolboll2's full-sized avatar

Kristoffer Tølbøll KristofferTolboll2

View GitHub Profile
Plan: First-Delivery Audit — Tenant, Token/TokenGroup, Location, Network
Context
The team is preparing the first delivery of the EMSP Platform Public API for the UTA pilot. The CDR Deep Dive and cdrs.yaml have already been
aligned through PR #13. This plan captures the remaining alignment work for the four other domains the user named (Tenant, Token+TokenGroup,
Location, Network) against:
- Their Notion Deep Dive pages (links in context/notion-pages-index.md)
- The four RFCs that have appeared since the original docs/yaml were authored. All have advanced status today (re-queried 2026-04-30):

Unit-Scale Mismatch — Remediation Plan

Date: 2026-04-26 Owner: Raven team Related: docs/site-057-distribution-loss-audit-2026-04-26.md

Problem recap

Every row in meter_readings whose meter is of type bulk or energy_center was ingested with energy_heat_cum_kwh values that are literally one thousand times too small — the

[
{
"id": "8397290709952872448",
"tournament_id": "8374895478454001664",
"number": 1,
"name": "FCC Ligaen",
"type": "league",
"status": "ready",
"closed": false,
"auto_placement_enabled": false,
@KristofferTolboll2
KristofferTolboll2 / drop_triggers.sql
Created July 10, 2023 11:45
SQL script to drop triggers
DELIMITER $$
DROP TRIGGER IF EXISTS customer_before_update$$
DROP TRIGGER IF EXISTS customer_before_delete$$
DELIMITER ;
function mergeSeedResults(...seedResults: Array<Partial<SeedResult>>): SeedResult {
const mergedSeedResult = new SeedResult();
Object.keys(mergedSeedResult).forEach((key) => {
if (Array.isArray(mergedSeedResult[key])) {
const mergedArray: any[] = [];
seedResults.forEach((seedResult) => {
if (seedResult && Array.isArray(seedResult[key])) {
mergedArray.push(...seedResult[key]);
}
APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:omTBBSVltkTVNhCJ3a1FVSxusG3xO7e6IH9bPKsIXNc=
APP_DEBUG=true
APP_URL=http://localhost
APP_PROTOCOL=http
LOG_CHANNEL=stack
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug
$productData = [...]
class ProductSeeder extends Seeder {
public function run() {
foreach($productData as $product){
Product::createOrUpdate([
'name' => $productData['name']
'price' => ...
  • Created new script based on the FolketingetSeeder script
    • There was some data missing for HolidayRules. A factory has been added to successfully seed the database.
@KristofferTolboll2
KristofferTolboll2 / TODO-list.md
Last active February 8, 2023 15:33
TODO-list.md
  1. If the initial wishstate is approved should the returned wishtype be the same as the initial wishtype or should it be ININITIAL WISHTYPE.

    Færdiggør test cases for Wishstype og pending state

1. If the initial wishstate is approved should the returned wishtype be the same as the initial wishtype or should it be ININITIAL WISHTYPE.
<ol>