Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
b7bf38e
rest api history repository
wwwy3y3 Apr 18, 2025
2b96fff
refactor
wwwy3y3 Apr 22, 2025
1884ae1
show intent reasoning
wwwy3y3 Apr 22, 2025
f8d2ede
add api history graphql api
wwwy3y3 Apr 22, 2025
f5dec5e
run sql
wwwy3y3 Apr 22, 2025
69e7a78
sanitize records
wwwy3y3 Apr 22, 2025
5a7d256
response id
wwwy3y3 Apr 22, 2025
129fd3b
return invalid_sql if it's provided
wwwy3y3 Apr 23, 2025
daee193
add language parameter to generate_sql
wwwy3y3 Apr 23, 2025
ec89807
add returnSqlDialect param to generate_sql
wwwy3y3 Apr 23, 2025
8d59e0a
stream explanation api
wwwy3y3 Apr 23, 2025
6b18484
generate_vega_spec api
wwwy3y3 Apr 23, 2025
bd53d7a
openapi yaml
wwwy3y3 Apr 23, 2025
9859664
fix graphql
wwwy3y3 Apr 23, 2025
cc461fc
vega utils
wwwy3y3 Apr 24, 2025
aa368be
upgrade uuid
wwwy3y3 Apr 24, 2025
bc97366
add fk to migration
wwwy3y3 Apr 24, 2025
0767658
add timeout
wwwy3y3 Apr 24, 2025
3ce476b
timeout error
wwwy3y3 Apr 24, 2025
fcc4280
fix created/updated time resolve null issue
wwwy3y3 Apr 24, 2025
1f7b37f
add required to pagination
wwwy3y3 Apr 24, 2025
d415504
fix code review issues
wwwy3y3 Apr 24, 2025
85c4928
fix language param default logics
wwwy3y3 Apr 24, 2025
8a940af
feat(wren-ui): API history page for monitoring RESTful API access (#1…
andreashimin Apr 25, 2025
c07f9aa
fix code review
wwwy3y3 Apr 25, 2025
0950762
typo
wwwy3y3 Apr 25, 2025
ae6106f
fix(wren-ui): defense mechanism for json string
andreashimin Apr 25, 2025
bf6d824
feat(wren-ui): adjust column width
andreashimin Apr 25, 2025
33b9e0f
update openapi doc
wwwy3y3 Apr 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions wren-ui/migrations/20250511000000-create-api-history.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/**
* @param { import("knex").Knex } knex
* @returns { Promise<void> }
*/
exports.up = function (knex) {
return knex.schema.createTable('api_history', (table) => {
table.string('id').primary();

// Project
table.integer('project_id').notNullable();
table
.foreign('project_id')
.references('id')
.inTable('project')
.onDelete('CASCADE');

// Thread
table.string('thread_id');

// API Type
table.string('api_type').notNullable();

// Request
table.jsonb('headers');
table.jsonb('request_payload');

// Response
table.jsonb('response_payload');

// Result
table.integer('status_code').notNullable();
table.integer('duration_ms').notNullable();
table.timestamps(true, true);
});
};

/**
* @param { import("knex").Knex } knex
* @returns { Promise<void> }
*/
exports.down = function (knex) {
return knex.schema.dropTable('api_history');
};
Loading