Skip to content

Commit

Permalink
Merge pull request #38 from OpenG2P/develop
Browse files Browse the repository at this point in the history
Merge dev to 1.0.0
  • Loading branch information
venky-ganapathy authored May 2, 2024
2 parents a8666d4 + 00a3f5c commit af1a313
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 17 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/openapi-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
python-version: "3.10"
- name: Install app
run: |
python -m pip install git+https://github.com/openg2p/openg2p-fastapi-common@develop\#subdirectory=openg2p-fastapi-common
python -m pip install git+https://github.com/openg2p/openg2p-g2pconnect-common-lib@develop\#subdirectory=openg2p-g2pconnect-common-lib
python -m pip install git+https://github.com/openg2p/openg2p-g2pconnect-common-lib@develop\#subdirectory=openg2p-g2pconnect-mapper-lib
python -m pip install openg2p-fastapi-common==1.0.0
python -m pip install openg2p-g2pconnect-common-lib==1.0.0
python -m pip install openg2p-g2pconnect-mapper-lib==1.0.0
python -m pip install .
- name: Generate openapi json
run: |
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ ADD --chown=${container_user}:${container_user_group} main.py /app
RUN python3 -m venv venv \
&& . ./venv/bin/activate
RUN python3 -m pip install \
git+https://github.com/openg2p/openg2p-fastapi-common@develop\#subdirectory=openg2p-fastapi-common \
git+https://github.com/OpenG2P/openg2p-g2pconnect-common-lib@develop\#subdirectory=openg2p-g2pconnect-common-lib \
git+https://github.com/OpenG2P/openg2p-g2pconnect-common-lib@develop\#subdirectory=openg2p-g2pconnect-mapper-lib \
openg2p-fastapi-common==1.0.0 \
openg2p-g2pconnect-common-lib==1.0.0 \
openg2p-g2pconnect-mapper-lib==1.0.0 \
./src

CMD python3 main.py migrate; \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@ async def validate_link_request(
# Check if the ID is already mapped
result = await connection.execute(
select(IdFaMapping).where(
and_(
IdFaMapping.id_value == single_link_request.id,
IdFaMapping.fa_value == single_link_request.fa,
)
IdFaMapping.id_value == single_link_request.id,
)
)
link_request_from_db = result.first()
Expand Down
5 changes: 1 addition & 4 deletions src/openg2p_spar_mapper_api/services/mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,7 @@ async def update_mapping(self, session, single_update_request):
if single_update_request.phone_number:
result.phone = single_update_request.phone_number
if single_update_request.additional_info:
addl_info_copy = (
result.additional_info.copy() if result.additional_info else []
)
result.additional_info = addl_info_copy
result.additional_info = single_update_request.additional_info
else:
single_response.status = StatusEnum.rjct
single_response.status_reason_code = UpdateStatusReasonCode.rjct_id_invalid
Expand Down
6 changes: 3 additions & 3 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pytest-asyncio
pytest-cov
git+https://github.com/openg2p/openg2p-fastapi-common@develop#subdirectory=openg2p-fastapi-common
git+https://github.com/openg2p/openg2p-g2pconnect-common@develop#subdirectory=openg2p-g2pconnect-common-lib
git+https://github.com/OpenG2P/openg2p-g2pconnect-common@develop#subdirectory=openg2p-g2pconnect-mapper-lib
openg2p-fastapi-common==1.0.0
openg2p-g2pconnect-common-lib==1.0.0
openg2p-g2pconnect-mapper-lib==1.0.0

0 comments on commit af1a313

Please sign in to comment.