Skip to content

Commit f5ad417

Browse files
authored
Merge pull request #39 from ioet/feature/remove-technology-resource#37
Remove Technology as domain entity.
2 parents d5a4e5c + 53b324d commit f5ad417

File tree

4 files changed

+13
-80
lines changed

4 files changed

+13
-80
lines changed

requirements/prod.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Faker==4.0.2
2222
Flask-Script==2.0.6
2323

2424
# SQL database (MS SQL)
25+
pyodbc==4.0.30
2526
flask_sqlalchemy==2.4.1
2627

2728
# Handling requests

time_tracker_api/api.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,6 @@
5858

5959
api.add_namespace(activities_namespace.ns)
6060

61-
from time_tracker_api.technologies import technologies_namespace
62-
63-
api.add_namespace(technologies_namespace.ns)
64-
6561
from time_tracker_api.time_entries import time_entries_namespace
6662

6763
api.add_namespace(time_entries_namespace.ns)

time_tracker_api/technologies/technologies_namespace.py

Lines changed: 0 additions & 71 deletions
This file was deleted.

time_tracker_api/time_entries/time_entries_namespace.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,18 @@
2323
description='The id of the selected activity',
2424
example=faker.random_int(1, 9999),
2525
),
26-
'technologies': fields.String(
27-
required=True,
28-
title='Technologies',
29-
max_length=64,
30-
description='Canonical names of the used technologies during this period',
26+
'technologies': fields.List(
27+
fields.String(
28+
required=True,
29+
title='Technologies',
30+
max_length=64,
31+
description='Technology names used in this time-entry',
32+
),
33+
example=faker.words(
34+
3,
35+
['java', 'elixir', 'python', 'docker'],
36+
unique=True
37+
)
3138
),
3239
'description': fields.String(
3340
title='Comments',

0 commit comments

Comments
 (0)