Skip to content
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

Added support for entries. #5

Merged
merged 1 commit into from
May 6, 2020
Merged

Added support for entries. #5

merged 1 commit into from
May 6, 2020

Conversation

Ardjan-Aalberts
Copy link

Created the entries resource. The entries can be created, updated and deleted. The archiving and publishing is also added into the resource, keep in mind that a resource can only be deleted when unpublished.

The content types now use the name as it's ID. This makes the Terraform configuration a bit easier. The entry resource does the same, by setting the entry_id property as ID in Contentful. This creates a PUT request which will create an entry with the specified id.

Created the entries resource. The entries can be created, updated and deleted. The archiving and publishing is also added into the resource, keep in mind that a resource can only be deleted when unpublished.
@Ardjan-Aalberts Ardjan-Aalberts requested a review from jberghoef May 6, 2020 15:46
@codecov
Copy link

codecov bot commented May 6, 2020

Codecov Report

Merging #5 into master will increase coverage by 0.24%.
The diff coverage is 68.20%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master       #5      +/-   ##
==========================================
+ Coverage   67.13%   67.37%   +0.24%     
==========================================
  Files           6        8       +2     
  Lines        1004     1220     +216     
==========================================
+ Hits          674      822     +148     
- Misses        269      316      +47     
- Partials       61       82      +21     
Impacted Files Coverage Δ
contentful/resource_contentful_contenttype.go 65.75% <ø> (ø)
contentful/provider.go 93.75% <66.66%> (+0.41%) ⬆️
contentful/resource_contentful_entry.go 67.13% <67.13%> (ø)
contentful/resource_contentful_environment.go 70.42% <70.42%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5431dd2...54f9c72. Read the comment docs.

@jberghoef jberghoef merged commit 6954668 into master May 6, 2020
@jberghoef jberghoef deleted the features/entries branch May 6, 2020 19:18
jberghoef added a commit that referenced this pull request Jul 3, 2020
jberghoef added a commit that referenced this pull request Jul 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants