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

#157912738 View all devices #37

Merged
merged 24 commits into from
Jul 2, 2018
Merged

Conversation

owenbob
Copy link
Contributor

@owenbob owenbob commented Jun 8, 2018

What does this PR do?

  • This PR enables a user to create ,view and update devices.

How should this be manually tested?

  • Run the server
  • Test the queries at localhost:5000/mrm
  • Run createDevice mutation
  • Run allDevices query
  • Run updateDevice mutation

What are the relevant pivotal tracker stories?

  • #157912738

Screenshots (if appropriate)

createDevice mutation

image

allDevices query

image

updateDevice mutation

image

@@ -3,7 +3,7 @@

from api.location.models import Location as LocationModel

from api.room_resource.models import Resource as ResourceModel # noqa: F401
from api.devices.models import Devices as DevicesModel # noqa: F401
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think devices model is not necessary in the locations schema.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is as you are trying it is a declaration that you should nest till the devices model.

exact_device = query_device.filter(
DevicesModel.id == device_id
).first()
exact_device.date_added = datetime.now()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before executing any logic with the device object, first check that it actually exists?

'''


expected_update_device_response = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@coveralls
Copy link

coveralls commented Jun 14, 2018

Pull Request Test Coverage Report for Build 423

  • 71 of 71 (100.0%) changed or added relevant lines in 5 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.1%) to 99.286%

Totals Coverage Status
Change from base Build 402: 0.1%
Covered Lines: 417
Relevant Lines: 420

💛 - Coveralls

Owen Byomuhangi added 5 commits June 19, 2018 10:18
Pull latest develop changes

 # Please enter a commit message to explain why this merge is necessary,
@owenbob owenbob force-pushed the ft-view-all-devices-157912738 branch 2 times, most recently from 4bd9b0e to 2246c8a Compare June 30, 2018 13:26
* [Feature #158212394] healthcheck url setup

* [Feature #158212394] Postgres status

* [Feature #158212394] Test healthcheck url

* [Feature #158212394] Edit readme

* [Feature #158212394] Edit requirements.txt

* [Bug 158326634] Enable backward relationship (#41)

* #158429512 Delete a room (#44)

* Add untracked  files after merge

* [Fix] Pull Updated changes to develop

* [Feature #158429512] Add Delete room functionality

 This PR adds the delete room functionality where a user can delete a room once they have the correct roomId.This commit also containes tests for this feature.

* #158140748 Restrict room resource deletion (#43)

* [Bug 158140748] Restrict deletion of room resources to admin

[Bug 158140748] Add location for backward relationship

[Bug 158140748] Add block for backward relationship

[Bug 158140748] Add floor for backward relationship

[Bug 158140748] Add room for backward relationship

[Bug 158140748] Add decorator function to restrict mutation for admins

[Bug 158140748] Add location field on saving

[Bug 158140748] Add decorator and save functions

* [Bug 158140748] Correct flake8 errors

* [Bug 158140748] Correct failing test

* [Bug 158140748] Increase test coverage

* [Bug 158140748] Resolve merge conflicts

* [Bug 158140748] Resolve merge conflicts

* chore(code-climate): integrate code-climate with backend (#47)

add maintainability badge from code-climate to readme
add test-coverage badge from code-climate to readme
add more jobs to config.yml file

[Finishes #158227258]

* [Feature #158212394] healthcheck url setup

* [Feature #158212394] healthcheck url setup

* [Feature #158212394] Postgres status

* [Feature #158212394] Test healthcheck url

* [Feature #158212394] Edit readme

* [Feature #158212394] Edit requirements.txt

* [Feature 158212394] Rebase with develop

* Include calendar Id in update room mutation

* [Bug  #158463674] Include calendarId in UpdateRoom mutation

* [Bug  #158463674] Include calendarId in update room mutation test

* [Bug  #158463674] Fix flake8 errors

* #158429512 Delete a room (#44)

* Add untracked  files after merge

* [Fix] Pull Updated changes to develop

* [Feature #158429512] Add Delete room functionality

 This PR adds the delete room functionality where a user can delete a room once they have the correct roomId.This commit also containes tests for this feature.

* #158140748 Restrict room resource deletion (#43)

* [Bug 158140748] Restrict deletion of room resources to admin

[Bug 158140748] Add location for backward relationship

[Bug 158140748] Add block for backward relationship

[Bug 158140748] Add floor for backward relationship

[Bug 158140748] Add room for backward relationship

[Bug 158140748] Add decorator function to restrict mutation for admins

[Bug 158140748] Add location field on saving

[Bug 158140748] Add decorator and save functions

* [Bug 158140748] Correct flake8 errors

* [Bug 158140748] Correct failing test

* [Bug 158140748] Increase test coverage

* [Bug 158140748] Resolve merge conflicts

* [Bug 158140748] Resolve merge conflicts

* chore(code-climate): integrate code-climate with backend (#47)

add maintainability badge from code-climate to readme
add test-coverage badge from code-climate to readme
add more jobs to config.yml file

[Finishes #158227258]

* [Bug  #158463674] Include calendarId in UpdateRoom mutation

* [Bug  #158463674] Include calendarId in update room mutation test

* [Bug  #158463674] Fix flake8 errors

* [Bug  #158463674] Include calendarId in UpdateRoom mutation

* [Bug  #158463674] Include calendarId in update room mutation test

* [Bug  #158463674] Fix flake8 errors

* [Bug  #158463674] Include calendarId in UpdateRoom mutation

* [Bug  #158463674] Include calendarId in update room mutation test

* [Bug  #158463674] Fix flake8 errors

* [Bug  #158463674] Include calendarId in UpdateRoom mutation

* [Bug  #158463674] Include calendarId in UpdateRoom mutation

* [Bug  #158463674] Include calendarId in update room mutation test

* [Bug  #158463674] Include calendarId in update room mutation test

* [Bug  #158463674] Fix flake8 errors

* [Bug  #158463674] Fix flake8 errors

* [Bug 158463674] Rebase with develop

* [Bug 158463674] Rebase with develop

* [Bug 158463674] Refactor schema.py file

* [Bug bg-include-calendar-id-158463674] Add condition for non existant room

* #[158488492] Add the number of a given resource in a room

* [Bug  #158463674] Fix flake8 errors

* [Feature  ##158488492] Add the number of a  resource

* [Feature  ##158488492] Add the number of a  resource

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix flake8 error

* [Bug  #158463674] Include calendarId in update room mutation test

* [Bug  #158463674] Fix flake8 errors

* [Feature  ##158488492] Add the number of a  resource

* [Feature  ##158488492] Add the number of a  resource

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix flake8 error

* [Feature 158488492] Rebase with develop

* [Feature 158488492] Resolve merge conflicts

* [Feature 158488492] Add new initial migration file

* [Feature 158488492] Add new initial migration file

* [Bug #158140829] Restrict room resource addition to  admin users

* [Bug #158140829] Restrict room resource addition to  admin users

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug 158140829] Fix flake8 errors

* [Bug 158140829] Fix flake8 errors

* [Bug 158140829] Refactor tests

* #[158488492] Add the number of a given resource in a room

* [Bug  #158463674] Fix flake8 errors

* [Feature  ##158488492] Add the number of a  resource

* [Feature  ##158488492] Add the number of a  resource

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix flake8 error

* [Bug  #158463674] Include calendarId in update room mutation test

* [Bug  #158463674] Fix flake8 errors

* [Feature  ##158488492] Add the number of a  resource

* [Feature  ##158488492] Add the number of a  resource

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix flake8 error

* [Feature 158488492] Rebase with develop

* [Feature 158488492] Resolve merge conflicts

* [Feature 158488492] Add new initial migration file

* [Feature 158488492] Add new initial migration file

* [Bug #158140829] Restrict room resource addition to  admin users

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug 158140829] Fix flake8 errors

* [Bug 158140829] Fix flake8 errors

* [Bug 158140829] Refactor tests

* [Bug 158140829] Rebase with develop

* [Bug 158140829] Add initial migrations file

* [Bug 158140829] Add initial migrations file

* [Bug #158140601] Restrict room info updates to admin users only

* [Bug 158140601] Restrict room info updates to admin users

* [Bug 158140601] Restrict room info updates to admin users

* [Bug 158140829] Refactor tests

* [Bug 158140601] Resolve merge conflicts

* [Bug 158140601] Resolve merge conflicts

* [Bug 158140601] Resolve merge conflicts

* #156615498 restrict room addition

* [feature #156615498] Add test case for
- user
- role
- users_role
- auth decorator

* [feature #156615498] restrict room addition to  Ops users only

* [feature #156615498] restrict room addition to  Ops users only

* [feature #156615498 ] restrict room addition

* [Chore 158628447] Add os and sys imports

* # 158140801 restrict room resource update to Admins only

* [ft158140801] Add decorator to rectrict resource update

* add tests

* Update branch

*  #156873054 add office

* [feature #156873054] add office
- create office model and schema
- add office model and schema
- write test for both schema and model
- modify location relationship, correspoding test files and fixtures
- modify block relation, corresponding test files and fixture

* [Feature156873054] Backward relationship in office

* [Feature156873054] Backward relationship in office

* Revert " #156873054 add office" (#54)

This reverts commit 2469f39199c108c8badd82e16bbfe989275d9dae.

* #157385680 view room occupants

* Add google calendar functionality to view attendees

* [ft157385680]Add tests for calendar integration

* [ft157385680]Add tests

* [ft157385680]Make branch uptodate

* Make tests pass after reset

* Add pyOpenSS

* Add python-coveralls

* Remove  pyOpenSS

* Remove  python-coveralls

* Remove jwt

* Add google-auth

* Add requests

* refactor requirements

* Refactor code

* Make branch up to date

* Increase coverage

* Update branch

* Remove migration file

* update branch

* Update branch after Reverting develop

* [ft57385680]Clean up code

* [ft57385680]Clean up code in room models

* [ft157385680]Clen code

* [feature #157912470 ] view all people and their access level

* [feature #157912656] Admin can delete a user

- add a helper method to get user_id from database
- implement the mutation class `DeleteUser` to handle deleting user

- provide relevant user mutation to graphene schema

* feature[#157912656] write test cases for deleting user

- add token to perform default user operations

- create fixtures to perform deleteUser mutation

- create an admin user in the base test

- write test cases for deleting user

- refactor deleteResource test to reflect changes in base test

* [Feature #158212394] healthcheck url setup

* [Feature #158212394] healthcheck url setup

* [Feature #158212394] Postgres status

* [Feature #158212394] Test healthcheck url

* [Feature #158212394] Edit readme

* [Feature #158212394] Edit requirements.txt

* [Feature #158212394] healthcheck url setup

* [Feature #158212394] healthcheck url setup

* [Feature #158212394] Postgres status

* [Feature #158212394] Test healthcheck url

* [Feature #158212394] Edit readme

* [Feature #158212394] Edit requirements.txt

* [Feature 158212394] Rebase with develop

* [Feature 158212394] Rebase with develop

* [Feature 158212394] Rebase with develop

* [Feature 158212394] Remove migrations files

* Include migrations file

parent 3f5d52372ef90782f0fff74983f1819726e31a4f
author Namuli Joyce <jollankent@gmail.com> 1525765170 +0300
committer Owen Byomuhangi <owen.byomuhangi@Owens-MacBook-Pro.local> 1530362653 +0300

parent 3f5d52372ef90782f0fff74983f1819726e31a4f
author Namuli Joyce <jollankent@gmail.com> 1525765170 +0300
committer Owen Byomuhangi <owen.byomuhangi@Owens-MacBook-Pro.local> 1530362521 +0300

Bug 157356887 fix database url (#20)
[Feature #157912738]Add View all devices functionality
* fix database url for alembic

* fix url bug in alembic

* [Feature #156614968]Add update room mutation

* [Feature #156614968 ]Add tests

* [Feature #156461691] Change os.environ.get to os.getenv
Squashing  structure commits

[Feature #156461691] Change manage.py file

[Feature #156461691] Change database configurations to database module

[Feature #156461691] Implement schema for room and equipment modules

[Feature #156461691] Implement location, block, floor, room and equipment models

[Feature #156461691] Add .gitignore file

[Feature #156461691] Implement test of room creation

[Feature #156461691] Add fixtures file

[Feature #156461691] Change mock mutation data to fixtures file

[Feature #156461691] Modularise models in different packages

[Feature #156461691] Add fixtures helpers and utilities packages

[Feature #156461691] Add test_room package for room tests

[Feature #156461691] Refactor to import database from helpers

[Feature #156461691] Refactor to include helpers and models

[Feature #156461691] Refactor to have general schema

[Feature #156461691] Delete files

Update database.py

[Feature #156461691] Modularise models in different packages

[Feature #156461691] Delete files

[Feature #156461691] Refactor files

[Feature #156461691] Change FLASK_CONFIG to APP_SETTINGS

[Feature #156461691] Change FLASK_CONFIG to APP_SETTINGS

* [Feature #156614968]Finalize squashed changes

* [Fix #156614968]Clean up code

* [Feature #156987495]Add GET all rooms functionality

* [Feature #156987495]Add get room by id query

* [Feature #156987495]Add get all rooms in a location

* [feature #156987495]Add get rooms in a block

* [Feature #156987495]Add tests for room queries

* Add untracked  files after merge

* [Fix #156987495]Add /__pycache__/ to .gitignore

* [Feature #156987495]Add requested changes

* [Fix #156987495] Solve merge conflicts

* [Fix #156987495]Fix alembic error to pick DB URL

* [Feature #156987495]Add tests for all rooms

* [Fix #156987495]Remove relay imports and equipment label

 this commit removes use of relay and node. this commit also covers renaming of resource to equipment

* [Feature #156614968]Add update room mutation

* [Feature #156614968 ]Add tests

* [Feature #156461691] Change os.environ.get to os.getenv
Squashing  structure commits

[Feature #156461691] Change manage.py file

[Feature #156461691] Change database configurations to database module

[Feature #156461691] Implement schema for room and equipment modules

[Feature #156461691] Implement location, block, floor, room and equipment models

[Feature #156461691] Add .gitignore file

[Feature #156461691] Implement test of room creation

[Feature #156461691] Add fixtures file

[Feature #156461691] Change mock mutation data to fixtures file

[Feature #156461691] Modularise models in different packages

[Feature #156461691] Add fixtures helpers and utilities packages

[Feature #156461691] Add test_room package for room tests

[Feature #156461691] Refactor to import database from helpers

[Feature #156461691] Refactor to include helpers and models

[Feature #156461691] Refactor to have general schema

[Feature #156461691] Delete files

Update database.py

[Feature #156461691] Modularise models in different packages

[Feature #156461691] Delete files

[Feature #156461691] Refactor files

[Feature #156461691] Change FLASK_CONFIG to APP_SETTINGS

[Feature #156461691] Change FLASK_CONFIG to APP_SETTINGS

* [Feature #156614968]Finalize squashed changes

* [Fix #156614968]Clean up code

* [Feature #156614968]Add validation for empty string input

This commit caters for validation of empty strings incase you are updating the fields. The update query has also been updated to query by room id hence the tests have been changed to reflect this change. A new function has been placed in the utilities.py to cater for input validation

* Add untracked  files after merge

* [Fix #156614968]Add /__pycache__/ to .gitignore

* [Feature #156614968]Add update room mutation

* [Feature #156614968 ]Add tests

* [Feature #156614968]Finalize squashed changes

* [Fix #156614968]Clean up code

* [Feature #156614968]Add validation for empty string input

This commit caters for validation of empty strings incase you are updating the fields. The update query has also been updated to query by room id hence the tests have been changed to reflect this change. A new function has been placed in the utilities.py to cater for input validation

* [Fix #156614968]Add /__pycache__/ to .gitignore

* [Fix #156614968]Clean up __pycache__files

* [Fix #156614968] Rename equipmet to resource

* [Feature #156614968]Update mutation

 This commit updates the Update Room feature so as to get rid of relay and node and also to update using roomId

* [Fix #156614968]Fix import error

* [Fix #156614968]Fix merge conflict

* [Fix #156614968]Fix failing tests

* [Fix #156614968] Add update entity method

This commit  refactors the update mutation so that we do not have similar code and also introduces the update_entity_method in the utilities that can be used by all update mutations for various entities. Tests have been changed to fix fails.

* [Fix #156614968] Add update entity method

This commit  refactors the update mutation so that we do not have similar code and also introduces the update_entity_method in the utilities that can be used by all update mutations for various entities. Tests have been changed to fix fails.

* [Fix #156614968]Resolve to use assertEquals

 To improve code readability , this commit changes the test mode of assertion from assert to assertEquals

* [Feature #156614968]Add test

This commit adds testing for an empty  field for example and empty string when updating a name.

[Fix] Pull Updated changes to develop

[Feature #157627508] CircleCI Continuous Deployment to GCP (#25)

* Add untracked  files after merge

* [Fix] Pull Updated changes to develop

* [Chore #157622070] Fix failing test

* Add untracked  files after merge

* [Chore #157425740]Set up coverage

* [Fix] Remove html_coverage_report folder

* [Chore #157425740]Add coverage commands to tox.ini

* [Chore #157425740]Add test coverage commands to Read.me

* [Chore #157425740]Add coverage to requirements.txt

ch-fix-bug-in-env.py-file

merge alembic commits

[Chore #156466913] Fix failing test

[Chore #156466913] Fix failing test

*  [#157895403] Integrate Coveralls

- Allow for coveralls coverage reporting to github

*  [#157895403] Integrate Coveralls

- Place ReadMe Badge

[chore #157476915] setup flake8 (#22)

- update gitignore to include editor folders

- add flake8 to requirements.txt

- update tox.ini to run flake8

[chore #157693451] fix flake8 failing test

- refactor files to adhere to flake8 specifications

Clean develop branch

* [develop] delete __pycache__ files

* [Chore clean-develop] Update gitignore file

* [Chore clean-develop] Remove all cache directories

* [Chore clean-develop] Remove all .DS_store files

* [Chore clean-develop] Update gitignore file

* [Chore clean-develop] Remove double imports of os and sys

* [Chore clean-develop] Remove unnecessary migration files

* [Chore clean-develop] Remove code duplication

* [Chore clean-develop] Make block a package

* [Chore clean-develop] un comment .pytest_cache

Add the admin schema

Fix merge conflict after Rebase

Fix merge conflicts after rebase

Fix failing tests with tox

Make branch uptodate

[develop] delete __pycache__ files

[feature #156871868] setup test case and fixtures

[feature #156871868] create room resources

[Feature 156871868] Add room resources

[Feature 156871868] Remove un necessary imports

[feature #156872049] view room resource list

[Feature 156872049] Refactor files

[feature 157139031] Correct Flake8 lynting errors

[Feature 157139031] Refactor delete resource mutation

Update test_get_resource_list.py

Update test_delete_resource.py

Fix flake8 lint errors

Update room resource

* [Feature #156614968]Add update room mutation

* [Feature #156614968 ]Add tests

* [Feature #156461691] Change os.environ.get to os.getenv
Squashing  structure commits

[Feature #156461691] Change manage.py file

[Feature #156461691] Change database configurations to database module

[Feature #156461691] Implement schema for room and equipment modules

[Feature #156461691] Implement location, block, floor, room and equipment models

[Feature #156461691] Add .gitignore file

[Feature #156461691] Implement test of room creation

[Feature #156461691] Add fixtures file

[Feature #156461691] Change mock mutation data to fixtures file

[Feature #156461691] Modularise models in different packages

[Feature #156461691] Add fixtures helpers and utilities packages

[Feature #156461691] Add test_room package for room tests

[Feature #156461691] Refactor to import database from helpers

[Feature #156461691] Refactor to include helpers and models

[Feature #156461691] Refactor to have general schema

[Feature #156461691] Delete files

Update database.py

[Feature #156461691] Modularise models in different packages

[Feature #156461691] Delete files

[Feature #156461691] Refactor files

[Feature #156461691] Change FLASK_CONFIG to APP_SETTINGS

[Feature #156461691] Change FLASK_CONFIG to APP_SETTINGS

* [Feature #156614968]Finalize squashed changes

* [Fix #156614968]Clean up code

* [Feature #156987495]Add GET all rooms functionality

* [Feature #156987495]Add get room by id query

* [Feature #156987495]Add get all rooms in a location

* [feature #156987495]Add get rooms in a block

* [Feature #156987495]Add tests for room queries

* Add untracked  files after merge

* [Fix #156615347] Remove /__pycache__/ folders from git cache and add them to .gitignore

* [feature #156615347]Add room resource update endpoint-m This commit enables a user to update resources in a room  when they provide the room-id and the resource_id for the resource they want to update

* [Feature #156615347] Add tests

* [Fix #156615347]Resolve conflicts

* [Feature #156615347]
Add update room resource

* [Fix #156615347]Fix test fixture error

* [Feature #156614968]Add update room mutation

* [Feature #156614968 ]Add tests

* [Feature #156461691] Change os.environ.get to os.getenv
Squashing  structure commits

[Feature #156461691] Change manage.py file

[Feature #156461691] Change database configurations to database module

[Feature #156461691] Implement schema for room and equipment modules

[Feature #156461691] Implement location, block, floor, room and equipment models

[Feature #156461691] Add .gitignore file

[Feature #156461691] Implement test of room creation

[Feature #156461691] Add fixtures file

[Feature #156461691] Change mock mutation data to fixtures file

[Feature #156461691] Modularise models in different packages

[Feature #156461691] Add fixtures helpers and utilities packages

[Feature #156461691] Add test_room package for room tests

[Feature #156461691] Refactor to import database from helpers

[Feature #156461691] Refactor to include helpers and models

[Feature #156461691] Refactor to have general schema

[Feature #156461691] Delete files

Update database.py

[Feature #156461691] Modularise models in different packages

[Feature #156461691] Delete files

[Feature #156461691] Refactor files

[Feature #156461691] Change FLASK_CONFIG to APP_SETTINGS

[Feature #156461691] Change FLASK_CONFIG to APP_SETTINGS

* [Feature #156614968]Finalize squashed changes

* [Fix #156614968]Clean up code

* [Feature #156987495]Add GET all rooms functionality

* [Feature #156987495]Add get room by id query

* [Feature #156987495]Add get all rooms in a location

* [feature #156987495]Add get rooms in a block

* [Feature #156987495]Add tests for room queries

* [Fix #156615347] Remove /__pycache__/ folders from git cache and add them to .gitignore

* [feature #156615347]Add room resource update endpoint-m This commit enables a user to update resources in a room  when they provide the room-id and the resource_id for the resource they want to update

* [Feature #156615347] Add tests

* [Feature #156615347]
Add update room resource

* [Fix #156615347]Fix test fixture error

* [Fix #156615347] Run new migrations

* [Feature #156615347]Add tests for models

* [Feature #156615347]Add update room resource using resource id

This commit ensures that the update room resource mutation updates field according to the ResourceId provided. Tests have been changed to reflect this change of implementation.

* [Fix #156615347] Add code styling

* [Fix] Pull Updated changes to develop

* [Feature #156614968]Add update room mutation

* [Feature #156614968 ]Add tests

* [Feature #156461691] Change os.environ.get to os.getenv
Squashing  structure commits

[Feature #156461691] Change manage.py file

[Feature #156461691] Change database configurations to database module

[Feature #156461691] Implement schema for room and equipment modules

[Feature #156461691] Implement location, block, floor, room and equipment models

[Feature #156461691] Add .gitignore file

[Feature #156461691] Implement test of room creation

[Feature #156461691] Add fixtures file

[Feature #156461691] Change mock mutation data to fixtures file

[Feature #156461691] Modularise models in different packages

[Feature #156461691] Add fixtures helpers and utilities packages

[Feature #156461691] Add test_room package for room tests

[Feature #156461691] Refactor to import database from helpers

[Feature #156461691] Refactor to include helpers and models

[Feature #156461691] Refactor to have general schema

[Feature #156461691] Delete files

Update database.py

[Feature #156461691] Modularise models in different packages

[Feature #156461691] Delete files

[Feature #156461691] Refactor files

[Feature #156461691] Change FLASK_CONFIG to APP_SETTINGS

[Feature #156461691] Change FLASK_CONFIG to APP_SETTINGS

* [Feature #156614968]Finalize squashed changes

* [Fix #156614968]Clean up code

* [Feature #156987495]Add get room by id query

* [Feature #156987495]Add get all rooms in a location

* [feature #156615347]Add room resource update endpoint-m This commit enables a user to update resources in a room  when they provide the room-id and the resource_id for the resource they want to update

* [Feature #156615347] Add tests

* [Fix #156615347]Resolve conflicts

* [Feature #156614968]Add update room mutation

* [Feature #156615347]
Add update room resource

* [Feature #156461691] Change os.environ.get to os.getenv
Squashing  structure commits

[Feature #156461691] Change manage.py file

[Feature #156461691] Change database configurations to database module

[Feature #156461691] Implement schema for room and equipment modules

[Feature #156461691] Implement location, block, floor, room and equipment models

[Feature #156461691] Add .gitignore file

[Feature #156461691] Implement test of room creation

[Feature #156461691] Add fixtures file

[Feature #156461691] Change mock mutation data to fixtures file

[Feature #156461691] Modularise models in different packages

[Feature #156461691] Add fixtures helpers and utilities packages

[Feature #156461691] Add test_room package for room tests

[Feature #156461691] Refactor to import database from helpers

[Feature #156461691] Refactor to include helpers and models

[Feature #156461691] Refactor to have general schema

[Feature #156461691] Delete files

Update database.py

[Feature #156461691] Modularise models in different packages

[Feature #156461691] Delete files

[Feature #156461691] Refactor files

[Feature #156461691] Change FLASK_CONFIG to APP_SETTINGS

[Feature #156461691] Change FLASK_CONFIG to APP_SETTINGS

* [Feature #156614968 ]Add tests

* [Feature #156614968]Finalize squashed changes

* [Fix #156614968]Clean up code

* [Feature #156987495]Add get room by id query

* [Feature #156615347] Add tests

* [Fix #156615347] Run new migrations

* [Feature #156615347]Add tests for models

* [Feature #156615347]Add update room resource using resource id

This commit ensures that the update room resource mutation updates field according to the ResourceId provided. Tests have been changed to reflect this change of implementation.

* [Fix #156615347] Add code styling

* [Feature #156615347]Rebase to add flake8

* [feature #156615347]Rebase to develop

* [Feature 156615347] Refactor models and clean up branch

[Feature 156615347] Remove un necessary imports

[Feature 156615347] Remove pytest_cache directory

[Feature 156615347] Refactor model modules

* [Feature 156615347] Add alembic versions

* [Feature 156615347] Add alembic versions

Add image_url field to location and room models

* [Chore #157246990] Refactor files after rebase with develop

[Chore #157143874] Rename equipment to resource

[Chore #157143874] Add image_url to room model

[Chore #157143874] Add image_url to location model

[Chore #157143874] Delete equipment package

[Chore #157143874] Remove relay interfaces from schema

[Chore 157143874] Remove irrelevant whitespace

[Chore 157143874] Change resource to room_resource

[Chore 157143874] Comment out alembic

[Chore 157143874] Add imageUrl to room instance

[Chore 157143874] Change floor to floors

[Chore 157143874] Remove floor

[Chore 157143874] Change room to rooms

[Chore 157143874] Change floor to floors

[Chore 157143874] Change block to  blocks

[Chore 157143874] Add white space in parameters

[Chore 157143874] Change resource to resources

[Chore 157143874] Remove resources field

[Chore 157143874] Add white space in parameters

[Chore 157143874] Refactor fixture files

* [Chore 157143874] Correct flake8 linting errors

* [Chore 157143874] Increase test covergae

* [Chore 157143874] Correct failing test

* [Chore 157143874] Refactor fixture files

[Chore 157143874] Remove paranthesis

[Chore 157143874] Change test class name

[Chore 157143874] Test get room with id not exists

[Chore 157143874] Refactor files

* [Chore 157143874] Add missing files

[Chore #158111551] Cleanup alembic migration file (#34)

- delete repeated migration files
- updated downgrade version for all migration files

* [Feature158212180] Enable cors

* [Feature 158212180] Add flask_cors requirement

* [Feature 158212180] Refactor return statement to checkroom

* [Feature 158212180] Refactor to return room as an object

* [Feature 158212180] Refactor to return room as an object

Update config.yml (#36)

[chore #158211220]: upgrade infrastructure from zonal to regional

- Modified terraform config to make instance groups across regions (rather than single region)
- Created extra health checks
- Increases availability

* [ft156874253]Add decode token to  return UserCredentials

* [ft156874253] Fix Flake8 error

* Change pakage name to authentication.py

* Add untracked  files after merge

* [Fix] Pull Updated changes to develop

* [Feature #157385654] Add getRoomSchedule query

* [Feature #157385654]Add view room schedule functionality

This commit  enables a user to view room schedule from the google calendar api. One is able to specify the calendar_id and the number of days they need and will then receive information containing the event start time and summary of the event

* [Feature #157385654]Add tests

Add tests for the RoomSchedule query that contains google calendar intergration

* [Feature #157385654]Add tests

Add tests for the RoomSchedule query that contains google calendar intergration

* [Fix #157385654]Remove _pycache_ files

* [Feature #157385654] Add getRoomSchedule query

* [Feature #157385654]Add view room schedule functionality

This commit  enables a user to view room schedule from the google calendar api. One is able to specify the calendar_id and the number of days they need and will then receive information containing the event start time and summary of the event

* [Feature #157385654]Add tests

Add tests for the RoomSchedule query that contains google calendar intergration

* [Feature #157385654]Add tests

Add tests for the RoomSchedule query that contains google calendar intergration

* [Feature #157385654]Add latest changes from develop

* [fix #157385654]Fix flake8 issues

* [Fix #157385654] Fix failing test.

* [Feature #157385654]Add tests for events

* [Feature #157385654] Add getRoomSchedule query

* [Feature #157385654]Add view room schedule functionality

This commit  enables a user to view room schedule from the google calendar api. One is able to specify the calendar_id and the number of days they need and will then receive information containing the event start time and summary of the event

* [Feature #157385654]Add tests

Add tests for the RoomSchedule query that contains google calendar intergration

* [Feature #157385654]Add tests

Add tests for the RoomSchedule query that contains google calendar intergration

* [Feature #157385654] Add getRoomSchedule query

* [Feature #157385654]Add view room schedule functionality

This commit  enables a user to view room schedule from the google calendar api. One is able to specify the calendar_id and the number of days they need and will then receive information containing the event start time and summary of the event

* [Feature #157385654]Add tests

Add tests for the RoomSchedule query that contains google calendar intergration

* [Feature #157385654]Add tests

Add tests for the RoomSchedule query that contains google calendar intergration

* [Feature #157385654]Add latest changes from develop

* [Fix #157385654] Fix failing test.

* [Feature #157385654]Add tests for events

* [Fix #157385654]Run migrations with calendar_id field

* [Fix #157385654]Pull remote changes

* [Fix #157385654]Fix failing test fixtures

* [Fix #157385654]Fix flake8 errors

* [Fix #157385654]Fix migration issues

* [Fix #157385654] Add descriptive error

This commit enables raising of a more descriptive error when a calandarId given on the query is not assigned to any calendar on  ocnverge

* [Fix]Add google api credentials to .env example

* [Feature #157385654] Add getRoomSchedule query

* [Feature #157385654]Add view room schedule functionality

This commit  enables a user to view room schedule from the google calendar api. One is able to specify the calendar_id and the number of days they need and will then receive information containing the event start time and summary of the event

* [Feature #157385654]Add tests

Add tests for the RoomSchedule query that contains google calendar intergration

* [Feature #157385654]Add tests

Add tests for the RoomSchedule query that contains google calendar intergration

* [Feature #157385654] Add getRoomSchedule query

* [Feature #157385654]Add view room schedule functionality

This commit  enables a user to view room schedule from the google calendar api. One is able to specify the calendar_id and the number of days they need and will then receive information containing the event start time and summary of the event

* [Feature #157385654]Add tests

Add tests for the RoomSchedule query that contains google calendar intergration

* [Feature #157385654]Add tests

Add tests for the RoomSchedule query that contains google calendar intergration

* [Feature #157385654]Add latest changes from develop

* [Fix #157385654] Fix failing test.

* [Feature #157385654]Add tests for events

* [Feature #157385654] Add getRoomSchedule query

* [Feature #157385654]Add view room schedule functionality

This commit  enables a user to view room schedule from the google calendar api. One is able to specify the calendar_id and the number of days they need and will then receive information containing the event start time and summary of the event

* [Feature #157385654]Add tests

Add tests for the RoomSchedule query that contains google calendar intergration

* [Feature #157385654] Add getRoomSchedule query

* [Feature #157385654]Add view room schedule functionality

This commit  enables a user to view room schedule from the google calendar api. One is able to specify the calendar_id and the number of days they need and will then receive information containing the event start time and summary of the event

* [Feature #157385654]Add latest changes from develop

* [Fix #157385654] Fix failing test.

* [Feature #157385654]Add tests for events

* [Fix #157385654]Run migrations with calendar_id field

* [Fix #157385654]Pull remote changes

* [Fix #157385654]Fix failing test fixtures

* [Fix #157385654]Fix flake8 errors

* [Fix #157385654]Fix migration issues

* [Fix #157385654] Add descriptive error

This commit enables raising of a more descriptive error when a calandarId given on the query is not assigned to any calendar on  ocnverge

* [Fix]Add google api credentials to .env example

* [fix] Add new changes from develop

* [fix] Add new changes from develop

* [Fix]Fix failing test

[Bug 158326634] Enable backward relationship (#41)

* Add untracked  files after merge

* [Fix] Pull Updated changes to develop

* [Feature #158429512] Add Delete room functionality

 This PR adds the delete room functionality where a user can delete a room once they have the correct roomId.This commit also containes tests for this feature.

* [Bug 158140748] Restrict deletion of room resources to admin

[Bug 158140748] Add location for backward relationship

[Bug 158140748] Add block for backward relationship

[Bug 158140748] Add floor for backward relationship

[Bug 158140748] Add room for backward relationship

[Bug 158140748] Add decorator function to restrict mutation for admins

[Bug 158140748] Add location field on saving

[Bug 158140748] Add decorator and save functions

* [Bug 158140748] Correct flake8 errors

* [Bug 158140748] Correct failing test

* [Bug 158140748] Increase test coverage

* [Bug 158140748] Resolve merge conflicts

* [Bug 158140748] Resolve merge conflicts

chore(code-climate): integrate code-climate with backend (#47)

add maintainability badge from code-climate to readme
add test-coverage badge from code-climate to readme
add more jobs to config.yml file

[Finishes #158227258]

Include calendar Id in update room mutation

* [Bug  #158463674] Include calendarId in UpdateRoom mutation

* [Bug  #158463674] Include calendarId in update room mutation test

* [Bug  #158463674] Fix flake8 errors

* #158429512 Delete a room (#44)

* Add untracked  files after merge

* [Fix] Pull Updated changes to develop

* [Feature #158429512] Add Delete room functionality

 This PR adds the delete room functionality where a user can delete a room once they have the correct roomId.This commit also containes tests for this feature.

* #158140748 Restrict room resource deletion (#43)

* [Bug 158140748] Restrict deletion of room resources to admin

[Bug 158140748] Add location for backward relationship

[Bug 158140748] Add block for backward relationship

[Bug 158140748] Add floor for backward relationship

[Bug 158140748] Add room for backward relationship

[Bug 158140748] Add decorator function to restrict mutation for admins

[Bug 158140748] Add location field on saving

[Bug 158140748] Add decorator and save functions

* [Bug 158140748] Correct flake8 errors

* [Bug 158140748] Correct failing test

* [Bug 158140748] Increase test coverage

* [Bug 158140748] Resolve merge conflicts

* [Bug 158140748] Resolve merge conflicts

* chore(code-climate): integrate code-climate with backend (#47)

add maintainability badge from code-climate to readme
add test-coverage badge from code-climate to readme
add more jobs to config.yml file

[Finishes #158227258]

* [Bug  #158463674] Include calendarId in UpdateRoom mutation

* [Bug  #158463674] Include calendarId in update room mutation test

* [Bug  #158463674] Fix flake8 errors

* [Bug  #158463674] Include calendarId in UpdateRoom mutation

* [Bug  #158463674] Include calendarId in update room mutation test

* [Bug  #158463674] Fix flake8 errors

* [Bug  #158463674] Include calendarId in UpdateRoom mutation

* [Bug  #158463674] Include calendarId in update room mutation test

* [Bug  #158463674] Fix flake8 errors

* [Bug  #158463674] Include calendarId in UpdateRoom mutation

* [Bug  #158463674] Include calendarId in UpdateRoom mutation

* [Bug  #158463674] Include calendarId in update room mutation test

* [Bug  #158463674] Include calendarId in update room mutation test

* [Bug  #158463674] Fix flake8 errors

* [Bug  #158463674] Fix flake8 errors

* [Bug 158463674] Rebase with develop

* [Bug 158463674] Rebase with develop

* [Bug 158463674] Refactor schema.py file

* [Bug bg-include-calendar-id-158463674] Add condition for non existant room

* [Bug  #158463674] Fix flake8 errors

* [Feature  ##158488492] Add the number of a  resource

* [Feature  ##158488492] Add the number of a  resource

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix flake8 error

* [Bug  #158463674] Include calendarId in update room mutation test

* [Bug  #158463674] Fix flake8 errors

* [Feature  ##158488492] Add the number of a  resource

* [Feature  ##158488492] Add the number of a  resource

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix flake8 error

* [Feature 158488492] Rebase with develop

* [Feature 158488492] Resolve merge conflicts

* [Feature 158488492] Add new initial migration file

* [Feature 158488492] Add new initial migration file

[Bug #158140829] Restrict room resource addition to  admin users

* [Bug #158140829] Restrict room resource addition to  admin users

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug 158140829] Fix flake8 errors

* [Bug 158140829] Fix flake8 errors

* [Bug 158140829] Refactor tests

* #[158488492] Add the number of a given resource in a room

* [Bug  #158463674] Fix flake8 errors

* [Feature  ##158488492] Add the number of a  resource

* [Feature  ##158488492] Add the number of a  resource

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix flake8 error

* [Bug  #158463674] Include calendarId in update room mutation test

* [Bug  #158463674] Fix flake8 errors

* [Feature  ##158488492] Add the number of a  resource

* [Feature  ##158488492] Add the number of a  resource

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix failing tests

* [Feature  ##158488492] Fix flake8 error

* [Feature 158488492] Rebase with develop

* [Feature 158488492] Resolve merge conflicts

* [Feature 158488492] Add new initial migration file

* [Feature 158488492] Add new initial migration file

* [Bug #158140829] Restrict room resource addition to  admin users

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug #158140829] Fix tests

* [Bug 158140829] Fix flake8 errors

* [Bug 158140829] Fix flake8 errors

* [Bug 158140829] Refactor tests

* [Bug 158140829] Rebase with develop

* [Bug 158140829] Add initial migrations file

* [Bug 158140829] Add initial migrations file

[Bug #158140601] Restrict room info updates to admin users only

* [Bug 158140601] Restrict room info updates to admin users

* [Bug 158140601] Restrict room info updates to admin users

* [Bug 158140829] Refactor tests

* [Bug 158140601] Resolve merge conflicts

* [Bug 158140601] Resolve merge conflicts

* [Bug 158140601] Resolve merge conflicts

* [feature #156615498] Add test case for
- user
- role
- users_role
- auth decorator

* [feature #156615498] restrict room addition to  Ops users only

* [feature #156615498] restrict room addition to  Ops users only

* [feature #156615498 ] restrict room addition

[Chore 158628447] Add os and sys imports

* [ft158140801] Add decorator to rectrict resource update

* add tests

* Update branch

Revert " #156873054 add office" (#54)

This reverts commit 2469f39199c108c8badd82e16bbfe989275d9dae.

* Add google calendar functionality to view attendees

* [ft157385680]Add tests for calendar integration

* [ft157385680]Add tests

* [ft157385680]Make branch uptodate

* Make tests pass after reset

* Add pyOpenSS

* Add python-coveralls

* Remove  pyOpenSS

* Remove  python-coveralls

* Remove jwt

* Add google-auth

* Add requests

* refactor requirements

* Refactor code

* Make branch up to date

* Increase coverage

* Update branch

* Remove migration file

* update branch

* Update branch after Reverting develop

* [ft57385680]Clean up code

* [ft57385680]Clean up code in room models

* [ft157385680]Clen code

[feature #157912470 ] view all people and their access level

[feature #157912656] Admin can delete a user

- add a helper method to get user_id from database
- implement the mutation class `DeleteUser` to handle deleting user

- provide relevant user mutation to graphene schema

feature[#157912656] write test cases for deleting user

- add token to perform default user operations

- create fixtures to perform deleteUser mutation

- create an admin user in the base test

- write test cases for deleting user

- refactor deleteResource test to reflect changes in base test

[Feature #157912738]Add devices models

[Feature #157912738] Add query for all devices

[Feature #157912738]Add tests

delete alembic versions

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Feature #157912738]Add tests

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Fix] Add check for whether deviceId exists

[Feature #157912738] Add query for all devices

[Feature #157912738]Add tests

delete alembic versions

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Feature #157912738]Add tests

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Feature #157912738] Add query for all devices

[Feature #157912738]Add tests

delete alembic versions

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Feature #157912738]Add tests

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Fix] Fix failing test

This commit  fixes the test_resource_deletion that was failing due to unspecified relationship between it and the devices table

[Feature #157912738] Add query for all devices

[Feature #157912738]Add tests

delete alembic versions

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Feature #157912738]Add tests

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Fix] Add latest changes from develop

[Feature #157912738] Add query for all devices

[Feature #157912738]Add tests

delete alembic versions

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Feature #157912738]Add tests

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Fix] Fix failing test

This commit  fixes the test_resource_deletion that was failing due to unspecified relationship between it and the devices table

[Feature #157912738]Add devices models

[Feature #157912738] Add query for all devices

[Feature #157912738]Add tests

delete alembic versions

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Feature #157912738]Add tests

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Fix] Fix failing test

This commit  fixes the test_resource_deletion that was failing due to unspecified relationship between it and the devices table

[Fix] Add latest changes from develop

[Feature #157912738]Add tests

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Fix] Fix failing test

This commit  fixes the test_resource_deletion that was failing due to unspecified relationship between it and the devices table

[Feature #157912738] Add query for all devices

[Feature #157912738]Add tests

delete alembic versions

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Feature #157912738]Add tests

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Fix] Add latest changes from develop

[Feature #157912738] Add query for all devices

[Feature #157912738]Add tests

delete alembic versions
[Feature #157912738]Add view all devices functionality

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Feature #157912738]Add tests

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Fix] Fix failing test

This commit  fixes the test_resource_deletion that was failing due to unspecified relationship between it and the devices table

[Feature #157912738] Add query for all devices

[Feature #157912738]Add tests

delete alembic versions

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Feature #157912738]Add tests

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Fix] Add latest changes from develop

[Feature #157912738] Add query for all devices

[Feature #157912738]Add tests

delete alembic versions

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Feature #157912738]Add tests

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Fix] Fix failing test

This commit  fixes the test_resource_deletion that was failing due to unspecified relationship between it and the devices table

[Feature #157912738] Add query for all devices

[Feature #157912738]Add tests

delete alembic versions

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Feature #157912738]Add tests

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Fix] Add latest changes from develop

[Feature #157912738] Add query for all devices

[Feature #157912738]Add tests

delete alembic versions

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Feature #157912738]Add tests

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Fix] Fix failing test

This commit  fixes the test_resource_deletion that was failing due to unspecified relationship between it and the devices table

[Feature #157912738]Add devices models

[Feature #157912738] Add query for all devices

[Feature #157912738]Add tests

delete alembic versions

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Feature #157912738] Add query for all devices

[Feature #157912738]Add tests

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

delete alembic versions

[Fix] Fix failing test

This commit  fixes the test_resource_deletion that was failing due to unspecified relationship between it and the devices table

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Fix] Add latest changes from develop

[Feature #157912738]Add tests

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Fix] Fix failing test

This commit  fixes the test_resource_deletion that was failing due to unspecified relationship between it and the devices table

[Fix] Fix rebase conflicts from develop revert

parent 5189f7b8ab02846d1c725afbe15834f42feb1dd8
author Owen Byomuhangi <owen.byomuhangi@Owens-MacBook-Pro.local> 1528105101 +0300
committer Owen Byomuhangi <owen.byomuhangi@Owens-MacBook-Pro.local> 1530175094 +0300

parent 5189f7b8ab02846d1c725afbe15834f42feb1dd8
author Owen Byomuhangi <owen.byomuhangi@Owens-MacBook-Pro.local> 1528105101 +0300
committer Owen Byomuhangi <owen.byomuhangi@Owens-MacBook-Pro.local> 1530174629 +0300

[Feature #157912738] Add query for all devices
[Feature #157912738] Add view all devices feature

[Feature #157912738]Add tests

delete alembic versions

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Feature #157912738]Add tests

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Fix] Add latest changes from develop

[Fix] Fix rebase conflicts from develop revert

[Feature #157912738] Add query for all devices

[Feature #157912738]Add tests

delete alembic versions

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Feature #157912738]Add tests

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Fix] Add check for whether deviceId exists

[Fix] Fix failing test

This commit  fixes the test_resource_deletion that was failing due to unspecified relationship between it and the devices table

[Feature #157912738]Add devices models

[Feature #157912738] Add query for all devices

[Feature #157912738]Add tests

delete alembic versions

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Feature #157912738]Add tests

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Fix] Fix failing test

This commit  fixes the test_resource_deletion that was failing due to unspecified relationship between it and the devices table

[Fix] Add latest changes from develop

[Feature #157912738]Add tests

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Fix] Fix failing test

This commit  fixes the test_resource_deletion that was failing due to unspecified relationship between it and the devices table

[Feature #157912738] Add query for all devices

[Feature #157912738]Add tests

delete alembic versions

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Feature #157912738]Add tests

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Fix] Add latest changes from develop

[Feature #157912738] Add query for all devices

[Feature #157912738]Add tests

delete alembic versions

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Feature #157912738]Add tests

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Fix] Add check for whether deviceId exists

[Fix] Fix failing test

This commit  fixes the test_resource_deletion that was failing due to unspecified relationship between it and the devices table

[Feature #157912738] Add query for all devices

[Feature #157912738]Add tests

delete alembic versions

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Feature #157912738]Add tests

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Fix] Add latest changes from develop

[Feature #157912738]Add devices models

[Feature #157912738] Add query for all devices

[Feature #157912738]Add tests

delete alembic versions

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Feature #157912738]Add tests

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Fix] Add check for whether deviceId exists

[Fix] Fix failing test

This commit  fixes the test_resource_deletion that was failing due to unspecified relationship between it and the devices table

[Fix] Add latest changes from develop

[Feature #157912738]Add tests

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Fix] Add check for whether deviceId exists

[Fix] Fix failing test

This commit  fixes the test_resource_deletion that was failing due to unspecified relationship between it and the devices table

[Feature #157912738] Add query for all devices

[Feature #157912738]Add tests

delete alembic versions

[Feature #157912738] Add view view devices functionality

This commit adds a query to view all devices and two mutations to create and update devices.

[Feature #]Add view all devices functionality

[Fix]Add devices table to migrations

[Fix] add fix for Flake8 failure
@owenbob owenbob force-pushed the ft-view-all-devices-157912738 branch from 2246c8a to 1839662 Compare July 2, 2018 06:43
@PatrickCmd PatrickCmd merged commit 1c5510b into develop Jul 2, 2018
@shemogumbe shemogumbe deleted the ft-view-all-devices-157912738 branch October 29, 2018 11:13
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.

None yet

6 participants