-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fixes #8905] Implement API and remote file path support for layer da…
…ta replace (#9062) * [Fixes #8905] Implement replace layer * [Fixes #8905] Rollback test xml file * [Fixes #8905] Add APIv2 api for layer replace and add test coverage * [Fixes #8905] Add APIv2 api for layer replace and add test coverage * [Fixes #8905] fix check uuid on overwrite * [Fixes #8905] Add check for data consistency on replace/append layer * [Fixes #8905] Add check for data consistency on replace/append layer * [Fixes #8905] Fix broken tests and add unzip for zip replaces * [Fixes #8905] Test fix broken test for replace integration * [Fixes #8905] flake8 fix * [Fixes #8905] Test fix broken test for replace integration * [Fixes #8905] fix test * [Fixes #8905] fix test * [ISSUE #8905] Add csrf exception for upload view, add missing info * [ISSUE #8905] Fix upload flow * [ISSUE #8905] Fix upload flow * [ISSUE #8905] Fix upload flow * [Fixes #8905] Fix build for replace layer * [Fixes #8905] Rollback changes on env_dev * [Fixes #8905] Fix broken tests * [Fixes #9064Improve Upload Workflow resources state management] * [Fixes #9064] Improve Upload Workflow resources state management * [Fixes #8905] Remove unwanted code * [Fixes #8905] Remove unwanted code * [Fixes #8905] Fix broken tests * [Fixes #8905] Fix broken tests * [Fixes #8905] Fix broken tests * - Missing headers Co-authored-by: afabiani <[email protected]>
- Loading branch information
1 parent
23c5db3
commit e66da3b
Showing
9 changed files
with
306 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
######################################################################### | ||
# | ||
# Copyright (C) 2022 OSGeo | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
# | ||
######################################################################### | ||
from rest_framework.exceptions import APIException | ||
|
||
|
||
class LayerReplaceException(APIException): | ||
status_code = 500 | ||
default_detail = 'Error during layer replace.' | ||
default_code = 'layer_replace_exception' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.