Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Management Updates #21

Open
wants to merge 27 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
5387c04
Added Schema to readme
wilsonmcdade Nov 3, 2024
09bf8c0
Fixed issue where failed S3 retrieval would crack the app
wilsonmcdade Nov 5, 2024
2c9cf66
Added remarks field to murals
wilsonmcdade Nov 5, 2024
0ad41f4
add default image
wilsonmcdade Nov 5, 2024
87af43f
Updates to the suggestion form
wilsonmcdade Nov 5, 2024
a998633
Added confirmation modal on entry deletion
wilsonmcdade Nov 5, 2024
83d1fc3
Updated Edit Page with (nearly) all fields editable
wilsonmcdade Nov 5, 2024
11a4860
Added thumbnail generation from edit page
wilsonmcdade Nov 5, 2024
24c7b49
Finished thumbnail logic, added private notes field as well
wilsonmcdade Nov 5, 2024
d10943a
Fixed bug in private notes field
wilsonmcdade Nov 5, 2024
73db404
Show feedback on edit page
wilsonmcdade Nov 5, 2024
ecd3171
Added button mark entry as active on the edit page
wilsonmcdade Nov 5, 2024
740e1ca
Added tooltips to edit/mural pages. Also added support for multiline …
wilsonmcdade Nov 5, 2024
8e3e380
Fixed bug where artistKnown field gets set incorrectly on uploads
wilsonmcdade Nov 5, 2024
d41f5ef
Added mural card preview to the edit page
wilsonmcdade Nov 6, 2024
8310d44
Move remarks around
wilsonmcdade Nov 28, 2024
d98f14b
Added tags to mural card, changed styling
wilsonmcdade Nov 28, 2024
f9c98fe
Update styling of mural card
wilsonmcdade Nov 28, 2024
45671b9
Added more fields to images, update logic for editing tag/artist rela…
wilsonmcdade Nov 28, 2024
1fa8edd
Add tag descriptions to filter pages, fix bug where remarks field sho…
wilsonmcdade Nov 29, 2024
81afc18
Fixing bugs in edit page
wilsonmcdade Nov 29, 2024
67383ff
Fixed bug where image ordering had no effect on image ordering...
wilsonmcdade Nov 29, 2024
5c0d696
Export Feature
wilsonmcdade Nov 30, 2024
060ac58
Begin import feature
wilsonmcdade Nov 30, 2024
ea96b54
Caption display updates
wilsonmcdade Nov 30, 2024
d234f5c
Updated 404 logic and page, added nextmuralid edit fields
wilsonmcdade Nov 30, 2024
97f7f2c
Add tag and artist editing, update admin panel features, change some …
wilsonmcdade Dec 1, 2024
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
79 changes: 78 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,81 @@
* `python3 -m venv venv`
* `source venv/bin/activate`
* `pip3 install -r requirements.txt`
* `python3 app.py`
* `python3 app.py`

## Database Schema
This project uses SQLAlchemy to access a PostgresQL database. The following is the (generated afterwards) DB schema:

```
create table artistmuralrelation (
artist_id integer not null,
mural_id integer not null,
primary key (artist_id, mural_id),
foreign key (artist_id) references artists (id)
match simple on update no action on delete no action,
foreign key (mural_id) references murals (id)
match simple on update no action on delete no action
);

create table artists (
id integer primary key not null default nextval('artists_id_seq'::regclass),
name character varying(50),
notes text
);

create table feedback (
feedback_id integer primary key not null default nextval('feedback_feedback_id_seq'::regclass),
notes text,
time timestamp without time zone,
mural_id integer,
foreign key (mural_id) references murals (id)
match simple on update no action on delete no action
);

create table imagemuralrelation (
image_id integer not null,
mural_id integer not null,
primary key (image_id, mural_id)
);

create table images (
id integer primary key not null default nextval('images_id_seq'::regclass),
caption text,
alttext text,
ordering integer,
imghash text,
fullsizehash text
);

create table mural_tags (
tag_id integer,
mural_id integer,
id integer primary key not null default nextval('mural_tags_id_seq'::regclass),
foreign key (mural_id) references murals (id)
match simple on update no action on delete no action,
foreign key (tag_id) references tags (id)
match simple on update no action on delete no action
);

create table murals (
id integer primary key not null default nextval('murals_id_seq'::regclass),
title character varying(50) default 'Unnamed',
artistknown boolean default false,
notes text,
year integer,
location character varying(100),
nextmuralid integer,
text_search_index tsvector default to_tsvector('english'::regconfig, (((((((COALESCE(title, ''))::text || ' '::text) || COALESCE(notes, ''::text)) || ' '::text) || COALESCE((year)::text, ''::text)) || ' '::text) || (COALESCE(location, ''))::text)),
active boolean default true,
spotify text,
foreign key (nextmuralid) references murals (id)
match simple on update no action on delete no action
);
create index muralsearch_idx on murals using gin (text_search_index);

create table tags (
id integer primary key not null default nextval('tags_id_seq'::regclass),
name character varying(255) not null,
description text not null
);
```
Loading