Skip to content

Commit

Permalink
Merge pull request #7743 from khoaguin/update_request_approval_time
Browse files Browse the repository at this point in the history
Update request approval time
  • Loading branch information
shubham3121 authored Jun 13, 2023
2 parents b6e5b21 + 445a3d1 commit 4f368cc
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 23 deletions.
42 changes: 21 additions & 21 deletions packages/hagrid/hagrid/manifest_template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,26 @@ files:
grid:
path: packages/grid/
common:
- rabbitmq/rabbitmq.conf
- redis/redis.conf
- seaweedfs/filer.toml
- seaweedfs/s3config.json
- vpn/config.yaml
- rabbitmq/rabbitmq.conf
- redis/redis.conf
- seaweedfs/filer.toml
- seaweedfs/s3config.json
- vpn/config.yaml
docker:
- default.env
- docker-compose.build.yml
- docker-compose.dev.yml
- docker-compose.pull.yml
- docker-compose.test.yml
- docker-compose.tls.yml
- docker-compose.yml
- traefik/docker/dynamic-tls.yml
- traefik/docker/dynamic.yml
- traefik/docker/traefik-tls.template.yml
- traefik/docker/traefik.yml
- vpn/headscale.dockerfile
- vpn/tailscale.dockerfile
- default.env
- docker-compose.build.yml
- docker-compose.dev.yml
- docker-compose.pull.yml
- docker-compose.test.yml
- docker-compose.tls.yml
- docker-compose.yml
- traefik/docker/dynamic-tls.yml
- traefik/docker/dynamic.yml
- traefik/docker/traefik-tls.template.yml
- traefik/docker/traefik.yml
- vpn/headscale.dockerfile
- vpn/tailscale.dockerfile
k8s:
- devspace.yaml
- traefik/k8s/dynamic.yml
- traefik/k8s/traefik.yml
- devspace.yaml
- traefik/k8s/dynamic.yml
- traefik/k8s/traefik.yml
5 changes: 3 additions & 2 deletions packages/syft/src/syft/service/request/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class Request(SyftObject):
requesting_user_verify_key: SyftVerifyKey
approving_user_verify_key: Optional[SyftVerifyKey]
request_time: DateTime
approval_time: Optional[DateTime]
updated_at: Optional[DateTime]
node_uid: UID
request_hash: str
changes: List[Change]
Expand All @@ -153,7 +153,7 @@ class Request(SyftObject):
__attr_unique__ = ["request_hash"]
__attr_repr_cols__ = [
"request_time",
"approval_time",
"updated_at",
"status",
"changes",
"requesting_user_verify_key",
Expand Down Expand Up @@ -206,6 +206,7 @@ def apply(self, context: AuthedServiceContext) -> Result[SyftSuccess, SyftError]
change_status.applied = True
self.history.append(change_status)

self.updated_at = DateTime.now()
self.save(context=context)
return Ok(SyftSuccess(message=f"Request {self.id} changes applied"))

Expand Down

0 comments on commit 4f368cc

Please sign in to comment.