-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove CREATE verb on Daily report controller
Fixed a bug on the daily report related to item Add @commit to GET and LIST daily-report verbs Enhance test list of daily reports Updated some of labels of daily report model Modified the routing to the phase controller Added the method list to the phase controller v0.43.0a7 Add daily report migration v0.43.1a7 Revise time card to daily report (#811) * Revise time card to daily report, closes #805 closes #806 closes #807 closes #808 closes #809 * Remove CREATE verb on Daily report controller * Fixed a bug on the daily report related to item * Add @commit to GET and LIST daily-report verbs * Enhance test list of daily reports Implemented the list method on the phase controller (#814) * Implemented the list method on the phase controller * The coding style is modified Created custom exception classes (#778) * Renamed custom exception errors Created custom exception classes Created custom exception classes Created custom exception classes Fixed coding style Created custom exception classes * Enhance imports * Typo * Renamed none to null Implement filtering Item by different zones, closes #764 Add issue dict to item to_dict method return value Implement verb ESTIMATE on Item, closes #812 Add test cases Enhance coding style Added the issue metadata into item model, closes #819 Increase the coverage (#810) * Check some test for increase coverage * Check some test for increase coverage * Some not found field check. * Add test for tokens * Remove redundant functions * Added new test case for increase coverage * Revise code * Add Not found in draftissue * Add Not found in draftissue * Add check project id * chat room exception replace * Added test case related to the audit log * Resolved the conflict * Some revise * Resolved the conflict * Added new test case related to the auditlog Add issue dict to item to_dict method return value (#816) Add project instance to issue response to_dict and issue to item response Enhance item model to_dict
- Loading branch information
shayan
committed
May 19, 2019
1 parent
f80141e
commit ef57b30
Showing
7 changed files
with
105 additions
and
151 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
"""empty message | ||
Revision ID: 84d5fef5976a | ||
Revises: a2410e75c467 | ||
Create Date: 2019-05-13 14:33:29.207279 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
from sqlalchemy.dialects import postgresql | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '84d5fef5976a' | ||
down_revision = 'a2410e75c467' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.create_table( | ||
'dailyreport', | ||
sa.Column('item_id', sa.Integer(), nullable=False), | ||
sa.Column('id', sa.Integer(), nullable=False), | ||
sa.Column('date', sa.Date(), nullable=False), | ||
sa.Column('hours', sa.Integer(), nullable=True), | ||
sa.Column('note', sa.Unicode(), nullable=True), | ||
sa.ForeignKeyConstraint(['item_id'], ['item.id'], ), | ||
sa.PrimaryKeyConstraint('id') | ||
) | ||
op.drop_table('timecard') | ||
op.add_column( | ||
'item', | ||
sa.Column('estimated_hours', sa.Integer(), nullable=True) | ||
) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column('item', 'estimated_hours') | ||
op.create_table( | ||
'timecard', | ||
sa.Column( | ||
'id', | ||
sa.INTEGER(), | ||
autoincrement=True, | ||
nullable=False | ||
), | ||
sa.Column( | ||
'start_date', | ||
postgresql.TIMESTAMP(), | ||
autoincrement=False, | ||
nullable=False | ||
), | ||
sa.Column( | ||
'end_date', | ||
postgresql.TIMESTAMP(), | ||
autoincrement=False, | ||
nullable=False | ||
), | ||
sa.Column( | ||
'estimated_time', | ||
sa.INTEGER(), | ||
autoincrement=False, | ||
nullable=False | ||
), | ||
sa.Column( | ||
'summary', | ||
sa.VARCHAR(), | ||
autoincrement=False, | ||
nullable=False | ||
), | ||
sa.PrimaryKeyConstraint( | ||
'id', | ||
name='timecard_pkey' | ||
) | ||
) | ||
op.drop_table('dailyreport') | ||
# ### end Alembic commands ### |
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 was deleted.
Oops, something went wrong.
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