Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Initial implementation of Course registration service #168

Open
ratanparai opened this issue Jun 27, 2020 · 13 comments · May be fixed by #364
Open

Initial implementation of Course registration service #168

ratanparai opened this issue Jun 27, 2020 · 13 comments · May be fixed by #364
Assignees
Milestone

Comments

@ratanparai
Copy link
Member

Initial implementation of course registration service with one command and query

Command: SubmitCourseRequestCommand
Query: GetAllCourseRequestQuery

Currently, we do not need any authorization checks.

@ratanparai ratanparai added this to the v0.3.0 milestone Jun 27, 2020
@ratanparai ratanparai changed the title Course registration service Initial implementation of Course registration service Jun 27, 2020
@ratanparai
Copy link
Member Author

Moving this issue to Backlog. Will move it to respective milestone after confirmation from @mahedee

@ratanparai ratanparai modified the milestones: v0.3.0, Backlog Aug 1, 2020
@aftabkajal aftabkajal modified the milestones: Backlog, v0.4.0 Aug 7, 2020
@ratanparai ratanparai modified the milestones: v0.4.0, v0.6.0 Oct 3, 2020
@ratanparai ratanparai modified the milestones: v0.6.0, v0.7.0 Mar 31, 2021
@mahedee
Copy link
Contributor

mahedee commented Apr 7, 2021

@ratanparai , what would be the service name? "CourseRegistration" is OK?

@ratanparai
Copy link
Member Author

ratanparai commented Apr 7, 2021

Yes, that will be perfect 👍

@mahedee
Copy link
Contributor

mahedee commented Apr 8, 2021

Whenever I am going to run migration command, I get following error. Could you please tell me what is the problem?

PS D:\Project\Github\eSchool\src\Services\CourseRegistration\CourseRegistration.Infrastructure> dotnet ef migrations add initmig --startup-project ../CourseRegistration.API

Could not execute because the specified command or file was not found.
Possible reasons for this include:

  • You misspelled a built-in dotnet command.
  • You intended to execute a .NET program, but dotnet-ef does not exist.
  • You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.

@mahedee mahedee removed their assignment Apr 8, 2021
@ratanparai
Copy link
Member Author

ratanparai commented Apr 9, 2021

@mahedee You need to install the Entity Framework global tool by running -

dotnet tool install --global dotnet-ef

For more info please check https://docs.microsoft.com/en-us/ef/core/cli/dotnet

@mahedee
Copy link
Contributor

mahedee commented Apr 9, 2021

@mahedee You need to install the Entity Framework global tool by running -

dotnet tool install --global dotnet-ef

For more info please check https://docs.microsoft.com/en-us/ef/core/cli/dotnet

Thanks. Already solved.

@mahedee mahedee assigned mahedee and unassigned ratanparai Apr 9, 2021
@mahedee
Copy link
Contributor

mahedee commented Apr 12, 2021

Doesn't show courseregistration.api to jaeger UI. I have already given a pull request. Could you please help me what is the problem?

jaeger

@ratanparai
Copy link
Member Author

@mahedee: Okay I will check the service.

You need to send request to the course registration service to show it in the Jaegar UI

@mahedee
Copy link
Contributor

mahedee commented Apr 12, 2021

@mahedee: Okay I will check the service.

You need to send request to the course registration service to show it in the Jaegar UI

How to send request? On which code block?

@ratanparai
Copy link
Member Author

@mahedee: You need to add OpenTelemetry configuration in your service configuration, This is the configuration for Enrolling service -

"OpenTelemetry": {
  "Enabled": true,
  "Istio": false,
  "Jaeger": {
    "Enabled": true,
    "ServiceName": "enrolling.api",
    "Host": "jaeger",
    "Port": 6831
  }
}

You need to change the ServiceName and use the configuration in your service's appsettings.json file. For example -

"OpenTelemetry": {
  "Enabled": true,
  "Istio": false,
  "Jaeger": {
    "Enabled": true,
    "ServiceName": "courseregistration.api",
    "Host": "jaeger",
    "Port": 6831
  }
}

Also, to send request to your service, open your application's Swagger URL (from your code, I can see the URL is http://localhost:5103/swagger/index.html) and send any request to any API endpoints you have created. You can also use Postman too if you are comfortable with it.

@mahedee
Copy link
Contributor

mahedee commented Apr 13, 2021

Thank you @ratanparai . It's working now.

@mahedee
Copy link
Contributor

mahedee commented Apr 13, 2021

CourseRegistration doesn't show in Banana Cake Pop. I mean graphql. I was trying using this url http://localhost:5101/graphql/
I have already given a pull request. Please review my code, what is the problem?

@ratanparai
Copy link
Member Author

@mahedee: You mean the GraphQL API Gateway right?

I can see the CourseRegistration service in the API Gateway. You need to reload the schema.

Screenshot 2021-04-17 at 1 37 41 PM

@ratanparai ratanparai removed their assignment Apr 24, 2021
@ratanparai ratanparai modified the milestones: v0.7.0, v0.8.0 Apr 24, 2021
@ratanparai ratanparai modified the milestones: v0.8.0, Backlog, v0.9.0 Jun 5, 2021
@ratanparai ratanparai linked a pull request Oct 2, 2021 that will close this issue
@ratanparai ratanparai modified the milestones: v0.9.0, v0.10.0 Oct 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants