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

APIv2 Tags & UIGroups #289

Merged
merged 3 commits into from
Nov 21, 2016
Merged

Conversation

IllyaMoskvin
Copy link
Member

@IllyaMoskvin IllyaMoskvin commented Jun 6, 2016

  • Added eight new endpoints.
    See roundware.api2.filters for available params.
    •   /api/2/projects/:id/tags/
      
    •   /api/2/projects/:id/uigroups/
      
    •   /api/2/uigroups/
      
    •   /api/2/uigroups/
      
    •   /api/2/uigroups/:id/
      
    •   /api/2/uiitems/
      
    •   /api/2/uiitems/:id/
      
    •   /api/2/tags/
      
  • Renamed MasterUI to UIGroup
  • Renamed UIMapping to UIItem
  • Changed all mentions of MasterUI and UIMapping in the codebase
  • Added new fields as per the docs:
    • Asset.loc_alt_text
    • Asset.loc_caption
    • UIItem.parent
    • Tag.location
    • Tag.project
  • Deprecated Tag.relationships into Tag.relationships_old
    It should be accessible via APIv1 as before
  • Added new TagRelationship model: {id,tag,parent}
    • TR.tag points to a Tag object
    • TR.parent points to another TR, or null
    • This allows for complex tag trees
  • Added new Tag.relationships serialization
    Added basic UIGroup and UIItem serialization
  • As per the docs, Tags returns id i/o tag_id
  • Added TagRelationshipAdmin to admin.py
  • Split get_project_tags into *_old and *_new
    IAPI/1 aliases *_old, API/2 aliases *_new
  • Adjusted Django admin to reflect these changes
  • Fixed the APIv2 tests to account for the responses
    More tests for APIv2 should be written

Depends on #283.

@IllyaMoskvin IllyaMoskvin force-pushed the APIv2-tags-uigroups branch 2 times, most recently from 1055587 to c929b4c Compare June 9, 2016 21:45
@IllyaMoskvin IllyaMoskvin force-pushed the APIv2-tags-uigroups branch 2 times, most recently from 60d6dff to 30826a5 Compare June 30, 2016 10:01
@IllyaMoskvin
Copy link
Member Author

Weird Travis errors. Looks like the MongoDB package is offline:

Err http://downloads-distro.mongodb.org dist/10gen Translation-en_US
  Unable to connect to downloads-distro.mongodb.org:http:
Err http://downloads-distro.mongodb.org dist/10gen Translation-en
  Unable to connect to downloads-distro.mongodb.org:http:

W: Failed to fetch http://downloads-distro.mongodb.org/repo/debian-sysvinit/dists/dist/10gen/i18n/Translation-en_US  Unable to connect to downloads-distro.mongodb.org:http:
W: Failed to fetch http://downloads-distro.mongodb.org/repo/debian-sysvinit/dists/dist/10gen/i18n/Translation-en  Unable to connect to downloads-distro.mongodb.org:http:
E: Some index files failed to download. They have been ignored, or old ones used instead.

The command "sudo apt-get -y update" failed and exited with 100 during .
Your build has been stopped.

Some days, I appreciate the modern developer ecosystem. Some days, stuff like this happens.

@13rac1
Copy link
Member

13rac1 commented Jul 28, 2016

I'm not sure if there is a better solution: Amend and force push to run travis again.

I'm surprised they don't have a local cache/proxy of the mongo packages and that Travis is installing them by default in the first place.

  - Added eight new endpoints:
      /api/2/projects/:id/tags/
      /api/2/projects/:id/uigroups/
      /api/2/uigroups/
      /api/2/uigroups/
      /api/2/uigroups/:id/
      /api/2/uiitems/
      /api/2/uiitems/:id/
      /api/2/tags/
    See roundware.api2.filters for available params

  - Renamed MasterUI to UIGroup

  - Renamed UIMapping to UIItem

  - Changed all mentions of MasterUI and UIMapping in the codebase

  - Added new fields as per the docs:
    - Asset.loc_alt_text
    - Asset.loc_caption
    - UIItem.parent
    - Tag.location
    - Tag.project

  - Deprecated Tag.relationships into Tag.relationships_old
    It should be accessible via APIv1 as before

  - Added new TagRelationship model: {id,tag,parent}
    - TR.tag points to a Tag object
    - TR.parent points to another TR, or null
    - This allows for complex tag trees

  - Added new Tag.relationships serialization
    Added basic UIGroup and UIItem serialization

  - As per the docs, Tags returns id i/o tag_id

  - Added TagRelationshipAdmin to admin.py

  - Split get_project_tags into *_old and *_new
    IAPI/1 aliases *_old, API/2 aliases *_new

  - Adjusted Django admin to reflect these changes

  - Fixed the APIv2 tests to account for the responses
    More tests for APIv2 should be written!
@hburgund hburgund self-assigned this Nov 21, 2016
@hburgund hburgund merged commit d485b21 into roundware:develop Nov 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants