monitorizare-vot icon indicating copy to clipboard operation
monitorizare-vot copied to clipboard

Enhance result of GET ​/api​/v1​/form

Open aniri opened this issue 4 years ago • 8 comments

Add two more fields to the returned info:

  • questionsNo - the total number of questions from the form
  • lastEditedOn - the date & time when the form was last edited (a new column should be added in the db for this, if it's missing; updating this value in the db will be handled in a another issue)

aniri avatar Jan 16 '21 17:01 aniri

HI @aniri, Could I work on this issue?

hphan9 avatar Oct 10 '21 16:10 hphan9

@hphan9 sure, thanks!

aniri avatar Oct 10 '21 18:10 aniri

Hi @aniri, I have some issues getting the project running. I have some questions that I hope you can help me answer. What is the best way to communicate with you or the team? Thank you very much.

hphan9 avatar Oct 17 '21 02:10 hphan9

Hi @hphan9 , can you please tell us your questions here and we'll see how to fix those issue. Thanks!

aniri avatar Oct 17 '21 08:10 aniri

Hi @aniri , when I run this command

src\api\VoteMonitor.Api> dotnet run

It fails because of this error

fail: Microsoft.Extensions.Diagnostics.HealthChecks.DefaultHealthCheckService[103]
      Health check Firebase completed after 0.8464ms with status Unhealthy and '(null)'
fail: Microsoft.Extensions.Diagnostics.HealthChecks.DefaultHealthCheckService[103]
      Health check AzureBlobStorage completed after 3.0031ms with status Unhealthy and '(null)'

I have set up the database successfully, and updated the connection string in appsetings.json file in txt type . I am attaching the appsetings.json file here and a picture of my database database monitor. appSettingJSON.txt

dotnet run fail

Could you please check and let me know if I missed something?

hphan9 avatar Oct 17 '21 20:10 hphan9

Hi @hphan9 , can you please try this branch https://github.com/code4romania/monitorizare-vot/pull/384 and tell me if it is failing again ?

Thanks

idormenco avatar Oct 18 '21 12:10 idormenco

Hi @idormenco, I tried it but I still got the same error.

hphan9 avatar Oct 19 '21 01:10 hphan9

@hphan9 you are right , please change in appsettings EnableHealthChecks to false

idormenco avatar Oct 19 '21 07:10 idormenco