Skip to content

Commit ea12ca5

Browse files
authored
Merge branch 'main' into cluster
2 parents 88bbac8 + fd66180 commit ea12ca5

27 files changed

Lines changed: 1526 additions & 867 deletions

File tree

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,22 @@ body:
2222
options:
2323
- label: "I agree to follow this project's Code of Conduct"
2424
required: true
25+
- type: checkboxes
26+
attributes:
27+
label: "Checklist before Submitting"
28+
options:
29+
- label: "Have you updated docs for it?"
30+
required: false
31+
- label: "Have you added unit tests?"
32+
required: false
33+
- label: "Have you made sure unit tests pass?"
34+
required: false
35+
- label: "Have you made sure code formatting is correct?"
36+
required: true
37+
- label: "Do Your changes passes all tests?"
38+
required: false
39+
40+
41+
42+
43+

.github/ISSUE_TEMPLATE/feature.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,18 @@ body:
2222
- label: "I agree to follow this project's Code of Conduct"
2323
required: true
2424
- label: "I want to work on this issue"
25+
- type: checkboxes
26+
attributes:
27+
label: "Checklist before Submitting."
28+
options:
29+
- label: "Have you updated docs for it?."
30+
required: true
31+
- label: "Have you added unit tests?."
32+
required: false
33+
- label: "Have you made sure unit tests pass?"
34+
required: false
35+
- label: "Have you made sure code formatting is correct?"
36+
required: true
37+
- label: "Does it contain any style related issues?"
38+
required: false
39+

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,19 +68,22 @@ Handles file system operations and provides a secure bridge between the frontend
6868

6969
1. Clone the repository to your local system:
7070

71+
## Automatic Setup:
72+
```bash
73+
npm run setup
74+
```
7175
```bash
7276
git clone git@github.com:AOSSIE-Org/PictoPy.git
7377
```
7478

7579
```bash
7680
cd PictoPy
7781
```
78-
82+
7983
## Automatic Setup:
8084
```bash
8185
npm run setup
8286
```
83-
8487
## Manual Setup:
8588
1. Navigate to the frontend directory:
8689
```bash
@@ -103,7 +106,6 @@ npm run setup
103106
```
104107

105108
On Windows:
106-
107109
```
108110
./setup_win.ps1
109111
```

app.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# ...existing code...
2+
from utils.cache import invalidate_cache
3+
4+
# Add cache reset option when application starts
5+
def initialize_app():
6+
# ...existing code...
7+
# Clear any stale cache data on startup
8+
invalidate_cache()
9+
# ...existing code...
10+
11+
# If there's a refresh functionality, update it to clear relevant caches
12+
def refresh_data():
13+
# ...existing code...
14+
# Clear specific caches that need refreshing
15+
invalidate_cache("albums:get_all_albums")
16+
invalidate_cache("folder_structure:get_folder_structure")
17+
# ...existing code...
18+
# ...existing code...

backend/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ dmypy.json
133133
# Cython debug symbols
134134
cython_debug/
135135

136+
136137
images/
137138

138139
dist/

backend/app/config/settings.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,7 @@
3636
TEST_INPUT_PATH = "tests/inputs"
3737
TEST_OUTPUT_PATH = "tests/outputs"
3838

39-
# Images and thumbnails paths
40-
IMAGES_PATH = DATA_DIR / "images"
39+
DATABASE_PATH = "app/database/PictoPy.db"
4140
THUMBNAIL_IMAGES_PATH = "./images"
41+
IMAGES_PATH = "./images"
4242

43-
# Ensure images directory exists
44-
os.makedirs(IMAGES_PATH, exist_ok=True)
45-
os.makedirs(THUMBNAIL_IMAGES_PATH, exist_ok=True)

0 commit comments

Comments
 (0)