-
Notifications
You must be signed in to change notification settings - Fork 3
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: Finish implementing project creation on backend (#21) #38
Conversation
This change finishes the implementation of creating a project on the backend.
This implements parts of keymanapp#10.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to see some "why" or "reason for existence" comments on some of the functions because there's a lot of code and a bit of context can really help understanding :)
It might be good to factor out all the URL strings embedded into a single location.
README.md
Outdated
@@ -32,6 +32,15 @@ In the `*.env` file replace the values for `CLIENT_ID` and `CLIENT_SECRET` with | |||
_Client Secret_ that GitHub displays for the app. You should also replace the value for | |||
`SESSION_SECRET` with a random value. | |||
|
|||
If you want to run all e2e tests, you'll have to create a test user on GitHub. Fork | |||
[kdotester1/khmer_angkor](https://github.com/kdotester1/khmer_angkor) to your test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we should create a repo on @keymanapp with a good 'testing' name such as "test_kdo_khmer_angkor" and use that rather than relying on another repo that may run into maintenance and access issues in the future?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea. Can you fork kdotester1/test_kdo_khmer_angkor
and keymanapptest/test_kdo_keyboards
into @keymanapp?
test/projects.e2e-spec.ts
Outdated
let githubService: GithubService; | ||
|
||
async function deleteKeyboardsRepo(): Promise<void> { | ||
await httpService.delete(`https://api.github.com/repos/${user}/keyboards`, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like a dangerous test. Do we need to reinforce that this test must not be run with the developer's real GH account?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the keyboards
repo renamed test_kdo_keyboards
this should be save now.
- rename repos used in e2e tests - add some comments - some cleanup of unused code
Can you point out the methods where this would be good? |
For example, |
Okay, I've done the review but currently having trouble getting the test environment to run on my machine. Not sure if I am missing something in the setup (noting also that README.md between the root and frontend folders are perhaps slightly inconsistent) |
Okay, got the dev environment running. It seems to be mostly working, so far. Testing notesWorkflow issue if forking repo late
This may correspond to a warning in the log:
UXIt may be a little early to be worrying about this but the grid layout with small boxes for repo names (see above) are a little awkward. May be better to use a list layout for this. |
yes, this PR only changes things in the backend, so everything you experienced is expected (with the exception of the "Too many requests" (#41)).
I created #40 for that. |
This change finishes the implementation of creating a project on the backend (#21).
This change also implements extracting the keyboard id from the keyboard_info file (part of #10).
This change is