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

feat: Fix resolver for cheqd-node 1.x release on mainnet [DEV-2238] #94

Merged
merged 88 commits into from
Feb 22, 2023
Merged
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
e7ed396
Fix problem with deference resource data with old DID format
abdulla-ashurov Jan 31, 2023
ff82a64
Fix problem with get all APIs resources with old DID
abdulla-ashurov Jan 31, 2023
4750b7d
Update unit tests
abdulla-ashurov Jan 31, 2023
9f463d6
Add integration tests for getting resources API with old DID
abdulla-ashurov Jan 31, 2023
a07ae32
Format integration tests files
abdulla-ashurov Jan 31, 2023
94d2034
Remove duplicate import
abdulla-ashurov Feb 2, 2023
268f38b
Add implementation to redirect OLD DID to new DID URL
abdulla-ashurov Feb 2, 2023
964af98
Fix golangci-lint mistake
abdulla-ashurov Feb 2, 2023
083992c
Update unit tests
abdulla-ashurov Feb 2, 2023
ebeddfc
Fix problem with view fragment in URL
abdulla-ashurov Feb 2, 2023
f415bec
Add integration tests for testing old DID with fragment
abdulla-ashurov Feb 2, 2023
a9b3dea
Remove unused functions and variables
abdulla-ashurov Feb 2, 2023
9ae0789
Refactor integration tests
abdulla-ashurov Feb 3, 2023
6d4b356
Fix golangci-lint mistakes
abdulla-ashurov Feb 3, 2023
bbafa35
Remove incorrect file push
abdulla-ashurov Feb 3, 2023
b49f289
Generate OpenAPI swagger
abdulla-ashurov Feb 6, 2023
0d0856a
Rename command 'docker-compose' to 'docker compose'
abdulla-ashurov Feb 7, 2023
f8c7660
Update swagger openAPI
abdulla-ashurov Feb 9, 2023
cbebce9
Update dead link in README.md
abdulla-ashurov Feb 9, 2023
87ac5db
Fix golangci-lint mistakes
abdulla-ashurov Feb 9, 2023
d7967d4
Update openAPI swagger
abdulla-ashurov Feb 9, 2023
87cabd7
Fix golangci-lint mistakes
abdulla-ashurov Feb 9, 2023
622b1af
Fix typo
abdulla-ashurov Feb 11, 2023
ff30f04
Refactor main.go
abdulla-ashurov Feb 11, 2023
4238d7e
Move ResolutionResourceMetadata type
abdulla-ashurov Feb 15, 2023
59a975e
Merge branch 'develop' into update-resolver
abdulla-ashurov Feb 15, 2023
5b433a4
Merge branch 'develop' into update-resolver
ankurdotb Feb 15, 2023
c76f0c4
Merge branch 'develop' into update-resolver
ankurdotb Feb 15, 2023
8949c6a
Replace deprecated goreleaser property
ankurdotb Feb 15, 2023
c4bd50c
Update .goreleaser.yml
ankurdotb Feb 15, 2023
80327a0
revert: labstack/echo/v4 bump
ankurdotb Feb 15, 2023
2fd566d
Roll everything back
ankurdotb Feb 15, 2023
a95be73
Merge branch 'develop' into update-resolver
ankurdotb Feb 15, 2023
107b886
rename to production-latest
ankurdotb Feb 15, 2023
8613c42
Delete production-latest.env
ankurdotb Feb 15, 2023
3111b1e
Delete container.env
ankurdotb Feb 15, 2023
0626193
Move variables to Docker Compose file
ankurdotb Feb 15, 2023
b259533
Set default variables in Dockerfile
ankurdotb Feb 15, 2023
19b09fc
Create docker-compose.yml
ankurdotb Feb 15, 2023
c60b120
Delete docker-compose.env
ankurdotb Feb 16, 2023
e73a3e9
Delete docker-compose.yml
ankurdotb Feb 16, 2023
698395b
Rename Dockerfile
ankurdotb Feb 16, 2023
53c9c3a
Update test.yml
ankurdotb Feb 16, 2023
65b393e
Restore Code of Conduct file
ankurdotb Feb 16, 2023
d71f060
Update README.md
ankurdotb Feb 16, 2023
f9237fd
Fix environment section format
ankurdotb Feb 16, 2023
40490fb
Reset go mod to see if it works
ankurdotb Feb 16, 2023
9f6a0cc
Update field in DIDDoc metadata can be skipped if it's not populated
abdulla-ashurov Feb 16, 2023
695fdf2
Refactor code
abdulla-ashurov Feb 16, 2023
fe529e9
Refactor code
abdulla-ashurov Feb 16, 2023
db483df
Fix problem with version_id in snake case, currently It print in came…
abdulla-ashurov Feb 16, 2023
57ac4a2
/did/metadata: This only outputs the resource metadata. This should b…
abdulla-ashurov Feb 16, 2023
a8ec6bc
Refactor unit test
abdulla-ashurov Feb 17, 2023
5e102b4
Add a new API endpoint for fetching metadata for specific version of …
abdulla-ashurov Feb 17, 2023
a0e231a
Add integration test for testing a new API:
abdulla-ashurov Feb 17, 2023
9973ff9
Generate swagger openAPI
abdulla-ashurov Feb 17, 2023
a79275c
Refactor code
abdulla-ashurov Feb 17, 2023
f360df6
Fix problem with swagger API
abdulla-ashurov Feb 17, 2023
93f8a26
Add a new API comments for swagger OpenAPI
abdulla-ashurov Feb 20, 2023
90f49fa
Generate swagger OpenAPI by last commit changes
abdulla-ashurov Feb 20, 2023
a0bf2d3
Generate swagger OpenAPI
abdulla-ashurov Feb 20, 2023
7258cbd
Update package-lock.json
ankurdotb Feb 22, 2023
2570922
Create Makefile
ankurdotb Feb 22, 2023
92d6bbb
make swagger
ankurdotb Feb 22, 2023
750c71f
swag fmt
ankurdotb Feb 22, 2023
28ca224
Update go.mod
ankurdotb Feb 22, 2023
4ebe11f
swag general info
ankurdotb Feb 22, 2023
fca40a4
delete docs folder
ankurdotb Feb 22, 2023
50e1e69
swag init
ankurdotb Feb 22, 2023
770c783
Update Makefile
ankurdotb Feb 22, 2023
762e7ad
mod tidy
ankurdotb Feb 22, 2023
05e9d58
Update Makefile
ankurdotb Feb 22, 2023
2a32c9b
Update .goreleaser.yml
ankurdotb Feb 22, 2023
f6d0ef0
Add build-binary workflow
ankurdotb Feb 22, 2023
78588b4
Fix Goreleaser archive rlcp warning
ankurdotb Feb 22, 2023
ff7b308
Update build statement in CodeQL
ankurdotb Feb 22, 2023
26cc5f9
Update main.go
ankurdotb Feb 22, 2023
f34f2d3
Update main.go
ankurdotb Feb 22, 2023
b48fabd
Update make swagger
ankurdotb Feb 22, 2023
f194dfa
Update Dockerfile
ankurdotb Feb 22, 2023
356423c
Update root.go
ankurdotb Feb 22, 2023
a644b17
Update .golangci.yaml
ankurdotb Feb 22, 2023
5688c26
Fix gocritic check
ankurdotb Feb 22, 2023
8d15ce4
Update main.go
ankurdotb Feb 22, 2023
74318dc
Disable stylecheck for now
ankurdotb Feb 22, 2023
ed8609c
Fix unlambda check
ankurdotb Feb 22, 2023
1b7d51f
Update build.yml
ankurdotb Feb 22, 2023
814ccd4
Update Makefile
ankurdotb Feb 22, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
run: docker image load --input did-resolver-build.tar

- name: Set up Docker container for test
run: docker-compose -f tests/docker/docker-compose.yml --env-file tests/docker/docker-compose.env up -d --no-build
run: docker compose -f tests/docker/docker-compose.yml --env-file tests/docker/docker-compose.env up -d --no-build

- name: Setup Python environment
working-directory: ./tests/pytest
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ DID methods are expected to provide [standards-compliant methods of DID and DID

### 📝 Architecture

The [Architecture Decision Record for the cheqd DID Resolver](https://docs.cheqd.io/identity/architecture/adr-list/adr-001-did-resolver) describes the architecture & design decisions for this software package.
The [Architecture Decision Record for the cheqd DID Resolver](https://docs.cheqd.io/identity/architecture/adr-list/adr-003-did-resolver) describes the architecture & design decisions for this software package.

## ✅ Quick Start

Expand All @@ -31,7 +31,7 @@ curl -X GET https://resolver.cheqd.net/1.0/identifiers/did:cheqd:mainnet:zF7rhDB
Spinning up a Docker container from the [pre-built `did-resolver` Docker image on Github](https://github.com/cheqd/did-resolver/pkgs/container/did-resolver) is as simple as the command below:

```bash
docker-compose -f docker/docker-compose.yml --env-file docker/docker-compose.env up --no-build
docker compose -f docker/docker-compose.yml --env-file docker/docker-compose.env up --no-build
```

#### Docker Compose environment variable configuration
Expand Down
4 changes: 2 additions & 2 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ version: '3.8'

# CAUTION: Please ensure you edit necessary values in docker-compose.env before using this Docker Compose file.

# SYNTAX: docker-compose -f docker/docker-compose.yml --env-file docker/docker-compose.env up --no-build
# SYNTAX: docker compose -f docker/docker-compose.yml --env-file docker/docker-compose.env up --no-build

services:
did_resolver:
# OPTIONAL: Rebuild cheqd did-resolver Docker image, if you want build your own
# Default is to pull in the pre-published image on GitHub Container Registry
# SYNTAX: docker-compose -f docker/docker-compose.yml --env-file docker/docker-compose.env build --no-cache
# SYNTAX: docker compose -f docker/docker-compose.yml --env-file docker/docker-compose.env build --no-cache
# build:
# context: ../
# dockerfile: docker/Dockerfile
Expand Down
Loading