• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

source-academy / stories-backend / 5565276858
47%

Build:
DEFAULT BRANCH: main
Ran 16 Jul 2023 02:10AM UTC
Jobs 1
Files 5
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Jul 2023 02:09AM UTC coverage: 54.93% (-24.3%) from 79.245%
5565276858

push

github

web-flow
Create migration files, Add users model & controller, Query from database (#28)

* Create Migration Files

* Update connect_test.go

replaced constants.DB_DEFAULT_NAME with "sa_stories"

* migrate down (rollback) section

* update migration files to to support ORM capabilities of GORM.

* edit story struct

* edit stories model

* edit users model

* edit users model

* add users test

* get user from userID

* users controller link to database

* Edit Stories Controller

* Edit Migration Files

* Edit Migration Files

* Edit GetStory router

* Clean Users Controller Code

* Edit Stories Controller Code

* Edit Migration Files

* Edit Model File

* Query database from model

* change JSON to camelCase

* removed error handling from GetUserByID and GetStoryByID

* Edit Migration Files

* Abstract duplicated code

* Separate Structs for Users and Stories File

* userId type change to uuid

* Revert userId type change to uuid

* Update migration files to use aliases

* Edit Stories migration file

* Remove tigger function in migration files

* Add Users and Stories view

* Edit Structs to inherit from gorm

* Edit Structs to inherit from gorm

* edit stories migration file

* Revert "Update connect_test.go"

This reverts commit 05a615307.

* Update table column names

This improves semantic correctness as well as fixed a violation of
GORM's convention to use all lowercase for column names.

* Remove commented code

---------

Co-authored-by: Rena Ng <e0772915@u.nus.edu>
Co-authored-by: Richard Dominick <34370238+RichDom2185@users.noreply.github.com>

78 of 142 relevant lines covered (54.93%)

0.63 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5565276858.1 16 Jul 2023 02:10AM UTC 5
54.93
GitHub Action Run
Source Files on build 5565276858
  • Tree
  • List 5
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #5565276858
  • afb429c9 on github
  • Prev Build on main (#5520647007)
  • Next Build on main (#5570966899)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc