Updated steps and admin page.
This commit is contained in:
19
_reference/2024-10-17 Update/2024-10-17 Update Steps.md
Normal file
19
_reference/2024-10-17 Update/2024-10-17 Update Steps.md
Normal file
@@ -0,0 +1,19 @@
|
||||
Update Steps
|
||||
|
||||
Using Admin page - set local hasura secret first, and uncomment pages in sider.
|
||||
|
||||
1. Disable triggers.
|
||||
```sql
|
||||
alter table jobs disable trigger set_public_jobs_updated_at;
|
||||
```
|
||||
|
||||
2. Set the hasura admin key in the admin page. Change the client to be the newly created global client, NOT the shop client.
|
||||
|
||||
|
||||
3. Run the script from 2024-01-01 - MAKE SURE TO CHECK - , 15 days at a time, and run the query to update the database.
|
||||
|
||||
|
||||
X. Re-enable triggers.
|
||||
```sql
|
||||
alter table jobs enable trigger set_public_jobs_updated_at;
|
||||
```
|
||||
219088
_reference/2024-10-17 Update/Updated Jobs.json
Normal file
219088
_reference/2024-10-17 Update/Updated Jobs.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -16,7 +16,7 @@ const httpLink = new HttpLink({
|
||||
|
||||
const localCLient = new ApolloClient({ link: httpLink, cache: new InMemoryCache({}) });
|
||||
|
||||
const startingDate = "2024-01-01";
|
||||
const startingDate = "2024-06-01";
|
||||
|
||||
export default function AdminPage() {
|
||||
const client = useApolloClient();
|
||||
@@ -52,6 +52,7 @@ export default function AdminPage() {
|
||||
group_verified
|
||||
clm_total
|
||||
clm_no
|
||||
bodyshopid
|
||||
close_date
|
||||
id
|
||||
loss_date
|
||||
@@ -130,6 +131,8 @@ export default function AdminPage() {
|
||||
title={() => "Jobs with the wrong group set."}
|
||||
dataSource={wrongGroups}
|
||||
columns={[
|
||||
{ key: "bodyshopid", dataIndex: "bodyshopid", title: "Shop ID" },
|
||||
{ key: "id", dataIndex: "id", title: "job ID" },
|
||||
{
|
||||
key: "created_at",
|
||||
dataIndex: "created_at",
|
||||
|
||||
Reference in New Issue
Block a user