Skip to content

Commit

Permalink
Merge pull request #3947 from mathesar-foundation/remove_dead_code
Browse files Browse the repository at this point in the history
Remove dead code (part 1)
  • Loading branch information
Anish9901 authored Oct 15, 2024
2 parents 35798e7 + e573704 commit f775dba
Show file tree
Hide file tree
Showing 144 changed files with 37 additions and 18,092 deletions.
1 change: 0 additions & 1 deletion config/settings/common_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ def pipe_delim(pipe_string):
'mathesar.rpc.collaborators',
'mathesar.rpc.columns',
'mathesar.rpc.columns.metadata',
'mathesar.rpc.connections',
'mathesar.rpc.constraints',
'mathesar.rpc.data_modeling',
'mathesar.rpc.databases',
Expand Down
21 changes: 5 additions & 16 deletions docs/docs/api/rpc.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ To use an RPC function:

!!! example

To call function `add_from_known_connection` from the `connections` section of this page, you'd send something like:
To call function `tables.list` from the Tables section of this page, you'd send something like:

`POST /api/rpc/v0/`b

```json
{
"jsonrpc": "2.0",
"id": 234,
"method": "connections.add_from_known_connection",
"method": "tables.list",
"params": {
"nickname": "anewconnection",
"db_name": "mynewcooldb"
},
"schema_oid": 47324,
"database_id": 1
}
}
```

Expand Down Expand Up @@ -128,17 +128,6 @@ Unrecognized errors from a given library return a "round number" code, so an unk
- disconnect
- ConfiguredDatabaseInfo


## Connections

::: connections
options:
members:
- add_from_known_connection
- add_from_scratch
- grant_access_to_user
- ConnectionReturn

## Constraints

::: constraints
Expand Down
3 changes: 0 additions & 3 deletions mathesar/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from mathesar.models.deprecated import Table, Schema, DataFile
from mathesar.models.users import User
from mathesar.models.query import Exploration
from mathesar.models.shares import SharedTable, SharedQuery


class MathesarUserAdmin(UserAdmin):
Expand All @@ -25,5 +24,3 @@ class MathesarUserAdmin(UserAdmin):
admin.site.register(DataFile)
admin.site.register(User, MathesarUserAdmin)
admin.site.register(Exploration)
admin.site.register(SharedTable)
admin.site.register(SharedQuery)
Empty file.
30 changes: 0 additions & 30 deletions mathesar/api/db/permissions/columns.py

This file was deleted.

23 changes: 0 additions & 23 deletions mathesar/api/db/permissions/constraint.py

This file was deleted.

36 changes: 0 additions & 36 deletions mathesar/api/db/permissions/database.py

This file was deleted.

94 changes: 0 additions & 94 deletions mathesar/api/db/permissions/query.py

This file was deleted.

25 changes: 0 additions & 25 deletions mathesar/api/db/permissions/query_table.py

This file was deleted.

26 changes: 0 additions & 26 deletions mathesar/api/db/permissions/records.py

This file was deleted.

75 changes: 0 additions & 75 deletions mathesar/api/db/permissions/schema.py

This file was deleted.

Loading

0 comments on commit f775dba

Please sign in to comment.