Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

WIP: create new book #84

Conversation

bdolor
Copy link
Contributor

@bdolor bdolor commented Jun 17, 2020

Work In Progress for #81

@codecov
Copy link

codecov bot commented Jun 17, 2020

Codecov Report

Merging #84 into dev will decrease coverage by 1.42%.
The diff coverage is 64.28%.

Impacted file tree graph

@@             Coverage Diff              @@
##                dev      #84      +/-   ##
============================================
- Coverage     77.42%   76.00%   -1.43%     
- Complexity      285      330      +45     
============================================
  Files             9        9              
  Lines          1032     1175     +143     
============================================
+ Hits            799      893      +94     
- Misses          233      282      +49     
Impacted Files Coverage Δ Complexity Δ
inc/class-controller.php 23.07% <4.87%> (-20.03%) 32.00 <14.00> (+14.00) ⬇️
inc/class-tool.php 74.79% <85.71%> (+6.07%) 110.00 <30.00> (+31.00)
inc/namespace.php 91.52% <100.00%> (ø) 0.00 <0.00> (ø)

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 86ab658...6f22552. Read the comment docs.

@bdolor bdolor marked this pull request as ready for review June 28, 2020 21:20
@cagp-dev-mtl cagp-dev-mtl changed the base branch from dev to pb-81_lti_create_new_book June 30, 2020 16:54
@cagp-dev-mtl cagp-dev-mtl merged commit f2e0763 into pressbooks:pb-81_lti_create_new_book Jun 30, 2020
cagp-dev-mtl pushed a commit that referenced this pull request Jul 8, 2020
* Enable createbook request handler

* WIP: create new book (#84)

* move processRequest to its own method

* stub out createbook class

* book creation working

* add test and improvments for buildTitle

* remove code, commented out

* add initial test for maybeDisambiguateDomain

* fix build

* attend to contstraints, exit strategies and book validation

* add test for validateLtiBookExists, clean up fuzzy

* fix fuzzyMatch, start test function for fuzzy

* move createbook into its own method, clean up

* fix disambiguation regression, remove invalid test

* correct declaration reference

* improve conformance with lti spec

* remove unwanted user match methods, get role from settings

* add logic and tests for edge case

* add more unit tests

* add initial unit test for processRequest

* remove unnecessary function

* improve buildAndValidate with better title sanitization

* fix tests, update doc blocks, add options, better validateLtiBooksExists

* add more coverage for validateLtiBookExists

* Pb 81 lti create new book (#89)

* move processRequest to its own method

* stub out createbook class

* book creation working

* add test and improvments for buildTitle

* remove code, commented out

* add initial test for maybeDisambiguateDomain

* fix build

* attend to contstraints, exit strategies and book validation

* add test for validateLtiBookExists, clean up fuzzy

* fix fuzzyMatch, start test function for fuzzy

* move createbook into its own method, clean up

* fix disambiguation regression, remove invalid test

* correct declaration reference

* improve conformance with lti spec

* remove unwanted user match methods, get role from settings

* add logic and tests for edge case

* add more unit tests

* add initial unit test for processRequest

* remove unnecessary function

* improve buildAndValidate with better title sanitization

* fix tests, update doc blocks, add options, better validateLtiBooksExists

* add more coverage for validateLtiBookExists

* clean up comments, add display logic

* add more coverage for processRequest

* formatting, constants, code review clean up

* remove trailing lines

* Pb 81 lti create new book (#90)

* move processRequest to its own method

* stub out createbook class

* book creation working

* add test and improvments for buildTitle

* remove code, commented out

* add initial test for maybeDisambiguateDomain

* fix build

* attend to contstraints, exit strategies and book validation

* add test for validateLtiBookExists, clean up fuzzy

* fix fuzzyMatch, start test function for fuzzy

* move createbook into its own method, clean up

* fix disambiguation regression, remove invalid test

* correct declaration reference

* improve conformance with lti spec

* remove unwanted user match methods, get role from settings

* add logic and tests for edge case

* add more unit tests

* add initial unit test for processRequest

* remove unnecessary function

* improve buildAndValidate with better title sanitization

* fix tests, update doc blocks, add options, better validateLtiBooksExists

* add more coverage for validateLtiBookExists

* clean up comments, add display logic

* add more coverage for processRequest

* formatting, constants, code review clean up

* remove trailing lines

* fix display book, authenticate user in createbook action

* Fix indentation, remove extra lines and add composer fix command

* Fix indentation

Co-authored-by: Brad <brad@bradpayne.ca>
cagp-dev-mtl pushed a commit that referenced this pull request Jul 10, 2020
* Enable createbook request handler

* move processRequest to its own method

* stub out createbook class

* book creation working

* add test and improvments for buildTitle

* remove code, commented out

* add initial test for maybeDisambiguateDomain

* fix build

* attend to contstraints, exit strategies and book validation

* add test for validateLtiBookExists, clean up fuzzy

* fix fuzzyMatch, start test function for fuzzy

* move createbook into its own method, clean up

* fix disambiguation regression, remove invalid test

* correct declaration reference

* improve conformance with lti spec

* remove unwanted user match methods, get role from settings

* add logic and tests for edge case

* add more unit tests

* add initial unit test for processRequest

* remove unnecessary function

* improve buildAndValidate with better title sanitization

* fix tests, update doc blocks, add options, better validateLtiBooksExists

* add more coverage for validateLtiBookExists

* WIP: create new book (#84)

* move processRequest to its own method

* stub out createbook class

* book creation working

* add test and improvments for buildTitle

* remove code, commented out

* add initial test for maybeDisambiguateDomain

* fix build

* attend to contstraints, exit strategies and book validation

* add test for validateLtiBookExists, clean up fuzzy

* fix fuzzyMatch, start test function for fuzzy

* move createbook into its own method, clean up

* fix disambiguation regression, remove invalid test

* correct declaration reference

* improve conformance with lti spec

* remove unwanted user match methods, get role from settings

* add logic and tests for edge case

* add more unit tests

* add initial unit test for processRequest

* remove unnecessary function

* improve buildAndValidate with better title sanitization

* fix tests, update doc blocks, add options, better validateLtiBooksExists

* add more coverage for validateLtiBookExists

* clean up comments, add display logic

* add more coverage for processRequest

* formatting, constants, code review clean up

* remove trailing lines

* Pb 81 lti create new book (#89)

* move processRequest to its own method

* stub out createbook class

* book creation working

* add test and improvments for buildTitle

* remove code, commented out

* add initial test for maybeDisambiguateDomain

* fix build

* attend to contstraints, exit strategies and book validation

* add test for validateLtiBookExists, clean up fuzzy

* fix fuzzyMatch, start test function for fuzzy

* move createbook into its own method, clean up

* fix disambiguation regression, remove invalid test

* correct declaration reference

* improve conformance with lti spec

* remove unwanted user match methods, get role from settings

* add logic and tests for edge case

* add more unit tests

* add initial unit test for processRequest

* remove unnecessary function

* improve buildAndValidate with better title sanitization

* fix tests, update doc blocks, add options, better validateLtiBooksExists

* add more coverage for validateLtiBookExists

* clean up comments, add display logic

* add more coverage for processRequest

* formatting, constants, code review clean up

* remove trailing lines

* fix display book, authenticate user in createbook action

Co-authored-by: bdolor <brad@bradpayne.ca>
cagp-dev-mtl pushed a commit that referenced this pull request Jul 10, 2020
* Enable createbook request handler

* move processRequest to its own method

* stub out createbook class

* book creation working

* add test and improvments for buildTitle

* remove code, commented out

* add initial test for maybeDisambiguateDomain

* fix build

* attend to contstraints, exit strategies and book validation

* add test for validateLtiBookExists, clean up fuzzy

* fix fuzzyMatch, start test function for fuzzy

* move createbook into its own method, clean up

* fix disambiguation regression, remove invalid test

* correct declaration reference

* improve conformance with lti spec

* remove unwanted user match methods, get role from settings

* add logic and tests for edge case

* add more unit tests

* add initial unit test for processRequest

* remove unnecessary function

* improve buildAndValidate with better title sanitization

* fix tests, update doc blocks, add options, better validateLtiBooksExists

* add more coverage for validateLtiBookExists

* WIP: create new book (#84)

* move processRequest to its own method

* stub out createbook class

* book creation working

* add test and improvments for buildTitle

* remove code, commented out

* add initial test for maybeDisambiguateDomain

* fix build

* attend to contstraints, exit strategies and book validation

* add test for validateLtiBookExists, clean up fuzzy

* fix fuzzyMatch, start test function for fuzzy

* move createbook into its own method, clean up

* fix disambiguation regression, remove invalid test

* correct declaration reference

* improve conformance with lti spec

* remove unwanted user match methods, get role from settings

* add logic and tests for edge case

* add more unit tests

* add initial unit test for processRequest

* remove unnecessary function

* improve buildAndValidate with better title sanitization

* fix tests, update doc blocks, add options, better validateLtiBooksExists

* add more coverage for validateLtiBookExists

* clean up comments, add display logic

* add more coverage for processRequest

* formatting, constants, code review clean up

* remove trailing lines

* Pb 81 lti create new book (#89)

* move processRequest to its own method

* stub out createbook class

* book creation working

* add test and improvments for buildTitle

* remove code, commented out

* add initial test for maybeDisambiguateDomain

* fix build

* attend to contstraints, exit strategies and book validation

* add test for validateLtiBookExists, clean up fuzzy

* fix fuzzyMatch, start test function for fuzzy

* move createbook into its own method, clean up

* fix disambiguation regression, remove invalid test

* correct declaration reference

* improve conformance with lti spec

* remove unwanted user match methods, get role from settings

* add logic and tests for edge case

* add more unit tests

* add initial unit test for processRequest

* remove unnecessary function

* improve buildAndValidate with better title sanitization

* fix tests, update doc blocks, add options, better validateLtiBooksExists

* add more coverage for validateLtiBookExists

* clean up comments, add display logic

* add more coverage for processRequest

* formatting, constants, code review clean up

* remove trailing lines

* fix display book, authenticate user in createbook action

* Pb 81 lti create new book (#90)

* move processRequest to its own method

* stub out createbook class

* book creation working

* add test and improvments for buildTitle

* remove code, commented out

* add initial test for maybeDisambiguateDomain

* fix build

* attend to contstraints, exit strategies and book validation

* add test for validateLtiBookExists, clean up fuzzy

* fix fuzzyMatch, start test function for fuzzy

* move createbook into its own method, clean up

* fix disambiguation regression, remove invalid test

* correct declaration reference

* improve conformance with lti spec

* remove unwanted user match methods, get role from settings

* add logic and tests for edge case

* add more unit tests

* add initial unit test for processRequest

* remove unnecessary function

* improve buildAndValidate with better title sanitization

* fix tests, update doc blocks, add options, better validateLtiBooksExists

* add more coverage for validateLtiBookExists

* clean up comments, add display logic

* add more coverage for processRequest

* formatting, constants, code review clean up

* remove trailing lines

* fix display book, authenticate user in createbook action

* Fix indentation, remove extra lines and add composer fix command

* Fix indentation

Co-authored-by: bdolor <brad@bradpayne.ca>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants