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

Fix maplayer manager error #11523

Merged
merged 2 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions arches/app/permissions/arches_permission_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,7 @@ def get_all_default_permissions(self, model: Model = None):
if (
not default_permissions_settings
or model is None
or hasattr(model, "graph_id") is False
or str(model.graph_id) not in default_permissions_settings
):
return []
Expand Down
62 changes: 62 additions & 0 deletions releases/7.6.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
Arches 7.6.1 Release Notes
--------------------------

### Bug Fixes and Enhancements

- Fixes bug causing the map layer manager to fail if a system uses DEFAULT_PERMISSIONS setting #[115522](https://github.com/archesproject/arches/issues/11522)

### Dependency changes:
```
Python:
Upgraded:
None

JavaScript:
Upgraded:
none
```

### Upgrading Arches

1. Upgrade to version 7.6.0 before proceeding by following the upgrade process in the [Version 7.6.0 release notes](https://github.com/archesproject/arches/blob/dev/7.6.x/releases/7.6.0.md)

2. Upgrade to Arches 7.6.1
```
pip install --upgrade arches==7.6.1
```

3. Update the JavaScript dependencies and devDependencies:
In the project's `package.json` file change arches from `stable/7.6.0` to `stable/7.6.1`:
```
"dependencies": {
"arches": "archesproject/arches#stable/7.6.1",
},
"devDependencies": {
"arches-dev-dependencies": "archesproject/arches-dev-dependencies#stable/7.6.1"
}
```
In in your terminal navigate to the directory with your project's package.json file. Then run:

yarn install


4. Start your application server in a separate terminal if it's not already running. Your webpack build will not complete without your application server running.

5. In a different terminal navigate to the directory with your project's package.json file, run `npm start` or `npm run build_development`. This will generate your `media/build` directory.
- If running your project in development:
- `npm start` will build the frontend of the application and then start a webpack development server
- `npm run build_development` will build a development bundle for the frontend assests of the application -- this should complete in less than 2 minutes
- If running your project in production:
- `npm run build_production` This builds a production bundle. **takes up to 2hrs depending on resources**
- Alternatively you can `cd ..` up a directory and run `python manage.py build_production`. This will create a production bundle of frontend assessts and also call `collectstatic`.


6. If you are running Arches on Apache, be sure to run:

```
collectstatic
```
and restart your server:
```
sudo service apache2 reload
```