Skip to content

Commit

Permalink
Production Deploy (#15090)
Browse files Browse the repository at this point in the history
Manual deploy as of commit:2bdea6a31999f8f436f3746c47ef0aaf8edb441e
  • Loading branch information
julien51 authored Nov 15, 2024
1 parent 61cac23 commit 054eff9
Show file tree
Hide file tree
Showing 244 changed files with 12,628 additions and 3,324 deletions.
5 changes: 4 additions & 1 deletion .clabot
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@
"deepsea514",
"Myestery",
"Supeeerpower",
"blurpesec"
"blurpesec",
"cypherpepe",
"mdqst",
"leopardracer"
],
"message": "Thank you for your pull request and welcome to Unlock! We require contributors to sign our [Contributor License Agreement](https://github.com/unlock-protocol/unlock/blob/master/CLA.txt), and we don't seem to have the users {{usersWithoutCLA}} on file. \nIn order for us to review and merge your code, please open _another_ pull request with a single modification: your github username added to the file `.clabot`.\nThank you! "
}
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
contributors and maintainers pledge to make participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Unlock has multiple projects ongoing whose release cycles are decoupled because

We use the traditional web-dev approach to release early and often. This allows for quick iterations and fast progress. Once reviewed and approved, any change is merged into our master branch and immediately \(minutes\) deployed to our staging environment. Each commit in the `master` branch should be expected to be deployed in production and should hence be "production-grade".

We also maintain a production branch which is used to deployed to ... production! This branch is also protected and the only way to add commits to it is to go thru a regular pull request process. This pull request has to be approved and manually merged by one of our team members. Once approved and merge the various production web applications are immediately updated.
We also maintain a production branch which is used to deploy to ... production! This branch is also protected and the only way to add commits to it is to go thru a regular pull request process. This pull request has to be approved and manually merged by one of our team members. Once approved and merge the various production web applications are immediately updated.

If needed, we can also deploy specific versions to production. For this is recommended approach is to open a new pull request against the production branch containing **only** the commits to be deployed since the latest production deploy. One way to do this is to rebase a local production-fix branch against the remote production branch and cherry pick the commits to be deployed from master. After this is a pull request is made and has to be approved by some of our team members. Once approved the updated production branch is immediately deployed.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ cd docker
docker compose exec eth-node yarn provision
```

### Run one of the app
### Run one of the apps

The main dashboard lives in the `unlock-app` folder of this repo.

Expand Down
71 changes: 71 additions & 0 deletions docs/docs/api/locksmith/add-event-to-collection.api.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
---
id: add-event-to-collection
title: "addEventToCollection"
description: "Add an event to a collection"
sidebar_label: "addEventToCollection"
hide_title: true
hide_table_of_contents: true
api: eJzNVsmOGzcQ/RWiTgnQGhkD59I32RgHk9UYaZCDoEOJLEm02GSbi8ZCo/89KHZLrW1sODkkJ7W4VNV7rxY24GryGLWzjwpKQKUedmTjzL13xpDkDSggkExexz2U8waeA3ko54t2UUCNHiuK5EPeslgRlBBMWkMB2kIJNcYNFODpc9KeFJTRJyogyA1VCGUDcV/nO9Fru4aWrSoK0us6Oy9hopRAK4jjEtEJFPI0NrZMIb5zas/mLh1JZyPZyFtY10bLDHb8KbDt5joOt/xEMp5FPIfse8qoGLNnzqKmwNeGrRtYCog6GupAXBGbQ25bPuYp1M6GzuT9mzf8c87CNElJIaySMXuBSpEaGDnj4x8DPsel1ckZbSOtyUNbfBUvOz9E8uoRHSZ17d2OTh0snTOENpvwhJHUJF7fLmDlfIURSlAYaRR1RXwl1er7rpwIk1UZNJmE4KTOlPXSvL2lxqPdodFKaFunKDxJ0jtSd+IdKtEn5N2/0cImY3DJAa7QBLoUp6IQcE234CpaYTKM96nPKbF0ai86X0IHobvY767dsLzeO3/L7nCU6+qUwZ/Jkteyp4ST+iEbOdD39pq+2YaEjlSJvUsCPYkKt9quD9SJlfNCOQrCuijoi/4fsOkpuOQl5ZBWLll1g79rVv5w8UM+3LHx061kerZsgwuZq3ulzZEHlfIyl5+3aEQgvyMvskj/OSOzDXkSLxhyd+aQhLYHCKxm3NBpMXybrGmGN2RPW0BFceN4MtUu5CbF46SE8e5+nDvRaOg444bnTtuthzy12Fw3mZI3UMImxjqU47FxchsqHTd3yfL3qPYuOunMnXQVXA6gj96plF2ILkJoi0uLIeJa2/Xo+yxPu1tHs4th1E5Zu06NbuAepWCX0E/Q3DsJPXko+o8Ph373y18zbo6TITFOjGCtf6U9q9KNbKz1aJsX8tT+nMjvc5/kXHoaRuzDF6xqQxeT77S925XLfnppnzMN4rcDL1AAi9Lhv79i5HhO8IzQioJYotySVWKVbBYBjY773CKICydnmpZbitquC1FRRIURRYjO45oKgVZx0epVz4LYOLcNnJFGS7Ihg+lp+P1xllFztlVoT3ZQKZFnhZg5cfY4OgPQDDX5rYdLr0SkL3FcG9R5+uWsavo0n8OOGbpMdCig7J9Yfa4vCthwfZRzaJolBnr2pm15uROynC8K2KHXXf3NG1A68Lc6NoBXUfzw1D+EfhSvBX3IKcv5s0OT+B8UwAnVvwbbRVvAhlDlt2PTb73vvIxmbGC4etXLuN66GxMpqY5fPbs46Rof/5zOuDL6x2HlFN/x+MIPPHzpwnQZdS61vNaAQbtOuQFCZ5NzAhNrMjxZzssuo7pJRNN0J2ZuS7Ztj7xE/s/EtO3fr74GnQ==
sidebar_class_name: "post api-method"
info_path: api/locksmith/unlock-locksmith
custom_edit_url: null
---

import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import ParamsDetails from "@theme/ParamsDetails";
import RequestSchema from "@theme/RequestSchema";
import StatusCodes from "@theme/StatusCodes";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";
import Heading from "@theme/Heading";

<Heading
as={"h1"}
className={"openapi__heading"}
children={"addEventToCollection"}
>
</Heading>

<MethodEndpoint
method={"post"}
path={"/v2/event-collection/{slug}/events"}
context={"endpoint"}
>

</MethodEndpoint>



Add an event to a collection

<Heading
id={"request"}
as={"h2"}
className={"openapi-tabs__heading"}
children={"Request"}
>
</Heading>

<ParamsDetails
parameters={[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}]}
>

</ParamsDetails>

<RequestSchema
title={"Body"}
body={{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["eventSlug"],"properties":{"eventSlug":{"type":"string"}},"title":"AddEventToCollectionBody"}}}}}
>

</RequestSchema>

<StatusCodes
id={undefined}
label={undefined}
responses={{"200":{"description":"Successfully added event to collection","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer"},"eventSlug":{"type":"string"},"collectionSlug":{"type":"string"},"isApproved":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"title":"EventCollectionAssociation"}}}},"400":{"description":"Invalid input received. Bad request.","content":{"application/json":{"schema":{"type":"object","nullable":false,"properties":{"message":{"type":"string","default":"Response body schema is invalid.","nullable":false},"error":{"type":"string","nullable":true}},"title":"GenericInvalidBodyError"}}}},"404":{"description":"The item you are making request for does not exist.","content":{"application/json":{"schema":{"type":"object","nullable":false,"properties":{"message":{"type":"string","default":"resource not found","nullable":false}},"title":"GenericNotFound"}}}},"500":{"description":"Unable to fullfil request due to internal server error.","content":{"application/json":{"schema":{"type":"object","nullable":false,"properties":{"message":{"type":"string","default":"There was an error in fullfiling the request.","nullable":false}},"title":"GenericServerError"}}}}}}
>

</StatusCodes>



71 changes: 71 additions & 0 deletions docs/docs/api/locksmith/add-event-verifier.api.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
---
id: add-event-verifier
title: "addEventVerifier"
description: "Adds a verifier for an event."
sidebar_label: "addEventVerifier"
hide_title: true
hide_table_of_contents: true
api: eJzlVk1v4zYQ/SvEnFpAidO0PVQ3t0iLbbuLxcZpURg+jMWxxbVEasmRE6+g/14MKX/EdpJuUKCH+mKJGj7OvHmcmQ5cQ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A8Z5MMct1O9rB3PX7MMShdYdnfdHAPd+arvZTnlNJ/OMlijN+lSTjvQJsjzfoZ6MqSvPgyzxNdqmBbPBrGVmBU5rbFq5Q0yEH0Nw6hcoFed+/L4+AqXjjnsZ30GJaGO83k3WP2U/LmYCNYe5aQES2xpx7goqOFnbWcHxe793URu8TDa1k7LFo/3MlPjfXI4jZqxLMS1Diq0yzaWbUiQIl5p+ge3/ahExKDOUtJ1yWLiVmT7fscQy7vw0vd/A8dfgVg=
sidebar_class_name: "put api-method"
info_path: api/locksmith/unlock-locksmith
custom_edit_url: null
---

import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import ParamsDetails from "@theme/ParamsDetails";
import RequestSchema from "@theme/RequestSchema";
import StatusCodes from "@theme/StatusCodes";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";
import Heading from "@theme/Heading";

<Heading
as={"h1"}
className={"openapi__heading"}
children={"addEventVerifier"}
>
</Heading>

<MethodEndpoint
method={"put"}
path={"/v2/events/{slug}/verifiers/{verifierAddress}"}
context={"endpoint"}
>

</MethodEndpoint>



Adds a verifier for an event.

<Heading
id={"request"}
as={"h2"}
className={"openapi-tabs__heading"}
children={"Request"}
>
</Heading>

<ParamsDetails
parameters={[{"in":"path","name":"slug","required":true,"description":"Slug","schema":{"type":"string"}},{"in":"path","name":"verifierAddress","required":true,"description":"User address to use as verifier","schema":{"type":"string"}}]}
>

</ParamsDetails>

<RequestSchema
title={"Body"}
body={{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"verifierName":{"type":"string","description":"optional verifier name"}}}}}}}
>

</RequestSchema>

<StatusCodes
id={undefined}
label={undefined}
responses={{"201":{"description":"Added verifier.","content":{"application/json":{"schema":{"type":"object","nullable":false,"required":["address"],"properties":{"address":{"type":"string","nullable":false},"lockAddress":{"type":"string","nullable":false},"lockManager":{"type":"string","nullable":false},"network":{"type":"integer","nullable":false},"name":{"type":"string","nullable":true}},"title":"Verifier"}}}},"403":{"description":"User is not authorized to perform this action.","content":{"application/json":{"schema":{"type":"object","nullable":false,"properties":{"message":{"type":"string","default":"You are not authorized or authenticated to perform this action.","nullable":false}},"title":"NotAuthenticated"}}}},"409":{"description":"There is a conflict. The resource already exist.","content":{"application/json":{"schema":{"type":"object","nullable":false,"properties":{"message":{"type":"string","default":"There was an error in fullfiling the request.","nullable":false}},"title":"GenericServerError"}}}},"500":{"description":"Unable to fullfil request due to internal server error.","content":{"application/json":{"schema":{"type":"object","nullable":false,"properties":{"message":{"type":"string","default":"There was an error in fullfiling the request.","nullable":false}},"title":"GenericServerError"}}}}}}
>

</StatusCodes>



71 changes: 71 additions & 0 deletions docs/docs/api/locksmith/add-manager-to-event-collection.api.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
---
id: add-manager-to-event-collection
title: "addManagerToEventCollection"
description: "Add a new manager address to an event collection"
sidebar_label: "addManagerToEventCollection"
hide_title: true
hide_table_of_contents: true
api: eJzNV21v2zYQ/ivEfdoAJe667ou+pUU6ZFu7onEwDIYxnMWzzVoiVfLk1DP034cjFUe2lPQNRffJMt/u7rnnjg/34GryyMbZKw05oNav0OKK/NRdbsnyC1eWVMg8ZBCoaLzhHeSzPdwE8pDP5u08gxo9VsTkQ5yyWBHkEMpmBRkYCznUyGvIwNP7xnjSkLNvKINQrKlCyPfAuzruYW/sClo5VVMovKmj8RwutFaoLN2qKnmoUGtPISh2Cq0icVcVfX/FGgV+7vROTJwaL5xlsixTWNelKSIOk3dB7O2HvrnFOyr4KIoZWLrtELtI7oDg4QVWNhRk+3DJSLwZsOGSUqDd8uh428qkp1A7G9KBT588kZ9jfK6boqAQlk1Z7gQa0qdAwVeEfBxRzOwwiEMMIzNHzo7MF25L/qrC1fj2BVorfBuZKo3dhDGfUWsj9rB8c+T9EPrqKD1Hq9B73AmLmaoHdheekElf8HA6g6XzFTLkoJHpjE1F4nNT68/dEvn9KZ6N01RKMjuUZMT5OCkZILM3i4ZpjMOxpEfQf5AK5sFcfowKPT++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sidebar_class_name: "post api-method"
info_path: api/locksmith/unlock-locksmith
custom_edit_url: null
---

import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import ParamsDetails from "@theme/ParamsDetails";
import RequestSchema from "@theme/RequestSchema";
import StatusCodes from "@theme/StatusCodes";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";
import Heading from "@theme/Heading";

<Heading
as={"h1"}
className={"openapi__heading"}
children={"addManagerToEventCollection"}
>
</Heading>

<MethodEndpoint
method={"post"}
path={"/v2/event-collection/{slug}/managers"}
context={"endpoint"}
>

</MethodEndpoint>



Add a new manager address to an event collection

<Heading
id={"request"}
as={"h2"}
className={"openapi-tabs__heading"}
children={"Request"}
>
</Heading>

<ParamsDetails
parameters={[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}]}
>

</ParamsDetails>

<RequestSchema
title={"Body"}
body={{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["newManagerAddress"],"properties":{"newManagerAddress":{"type":"string"}},"title":"AddManagerBody"}}}}}
>

</RequestSchema>

<StatusCodes
id={undefined}
label={undefined}
responses={{"200":{"description":"Successfully added manager address","content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"coverImage":{"type":"string"},"banner":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string"}},"managerAddresses":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"events":{"type":"array","items":{"type":"object","required":["name","slug","image","description","attributes"],"properties":{"name":{"type":"string"},"slug":{"type":"string"},"image":{"type":"string"},"description":{"type":"string"},"attributes":{"type":"array","items":{"type":"object","required":["trait_type","value"],"properties":{"trait_type":{"type":"string"},"value":{"type":"string"}}}}},"title":"Event"}}},"title":"EventCollection"}}}},"400":{"description":"Invalid input received. Bad request.","content":{"application/json":{"schema":{"type":"object","nullable":false,"properties":{"message":{"type":"string","default":"Response body schema is invalid.","nullable":false},"error":{"type":"string","nullable":true}},"title":"GenericInvalidBodyError"}}}},"401":{"description":"User is not authenticated.","content":{"application":{"schema":{"type":"object","nullable":false,"properties":{"message":{"type":"string","default":"There was an error in fullfiling the request.","nullable":false}},"title":"GenericServerError"}}}},"403":{"description":"User is not authorized to perform this action.","content":{"application/json":{"schema":{"type":"object","nullable":false,"properties":{"message":{"type":"string","default":"You are not authorized or authenticated to perform this action.","nullable":false}},"title":"NotAuthenticated"}}}},"404":{"description":"The item you are making request for does not exist.","content":{"application/json":{"schema":{"type":"object","nullable":false,"properties":{"message":{"type":"string","default":"resource not found","nullable":false}},"title":"GenericNotFound"}}}},"500":{"description":"Unable to fullfil request due to internal server error.","content":{"application/json":{"schema":{"type":"object","nullable":false,"properties":{"message":{"type":"string","default":"There was an error in fullfiling the request.","nullable":false}},"title":"GenericServerError"}}}}}}
>

</StatusCodes>



Loading

0 comments on commit 054eff9

Please sign in to comment.