Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #896 from open-apparel-registry/jcw/submit_single_…
Browse files Browse the repository at this point in the history
…facility

Add single facility submission endpoint
  • Loading branch information
jwalgran committed Oct 31, 2019
2 parents 7863081 + 6dfda0c commit ef1e928
Show file tree
Hide file tree
Showing 11 changed files with 1,068 additions and 199 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]
### Added
- Add single facility submission endpoint [#896](https://github.com/open-apparel-registry/open-apparel-registry/pull/896)

### Changed
- Replace facility history feature switch with feature flag [#881](https://github.com/open-apparel-registry/open-apparel-registry/pull/881)
Expand Down
11 changes: 11 additions & 0 deletions src/django/api/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,17 @@ class FacilityMergeQueryParams:
MERGE = 'merge'


class FacilityCreateQueryParams:
CREATE = 'create'
PUBLIC = 'public'


class FeatureGroups:
CAN_GET_FACILITY_HISTORY = 'can_get_facility_history'
CAN_SUBMIT_FACILITY = 'can_submit_facility'
CAN_SUBMIT_PRIVATE_FACILITY = 'can_submit_private_facility'


class FacilityHistoryActions:
CREATE = 'CREATE'
UPDATE = 'UPDATE'
Expand Down
2 changes: 1 addition & 1 deletion src/django/api/management/commands/batch_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

from api.constants import ProcessingAction
from api.models import FacilityList, FacilityListItem
from api.matching import match_facility_list_items
from api.processing import (parse_facility_list_item,
geocode_facility_list_item,
match_facility_list_items,
save_match_details)

LINE_ITEM_ACTIONS = {
Expand Down

0 comments on commit ef1e928

Please sign in to comment.