turingschool / turlink-be

0 stars 0 forks source link

Connected Rails BE directly to OpenAI for summaries #43

Closed jdmchugh111 closed 1 month ago

jdmchugh111 commented 1 month ago

Description of Changes

Updated summary endpoint, and also updated Top 5 links endpoint to include a step to retrieve summaries when a top_links request is made. Includes new migrations for summary and summary_timestamp attributes for link

What are the relevant tickets (if any)

Closes #36

Testing

Had to make 3 tests pending because they were throwing errors either because they were written to pass for mock data or they were making GET requests to made-up links like testlink.com. Coverage is still above 96%

Checklist

Deployment Notes

Needs to be manually deployed with a git push heroku main and a heroku run rake db:migrate