Create generate Rrule Function#1565
Open
davanmur wants to merge 199 commits into
Open
Conversation
Currently read-only. Uses fake data, as the Weeks API is not yet implemented.
… in navbar to "Patterns - Weekly"
…rontend into edit-conversions
Signed-off-by: PRINCESANCHEZ <princesanchez72@gmail.com>
…wPage merge backend
* CRUD operations working with back-end * client-side validation * delete confirmation * Spanish and French translations
Omit `id` from the default week values model
docker-compose should not be ignored and should not have to be altered for our time-varying conversion work
…/hook_conversion_to_backend
…on conflict Signed-off-by: PRINCESANCHEZ <princesanchez72@gmail.com>
Signed-off-by: PRINCESANCHEZ <princesanchez72@gmail.com>
…dd them to edgeSegments
This appears to be a basic working version for both slope/intercept and patterns. I wanted to save the work to be safe. Here is what was done: - Fixed addition of segments to match pre-pattern method and get code to work properly. - Changed how -infinity & infinity are dealt with. They are converted to fixed dates so the code works. This isn't the ideal/final solution but works for now. - Fixed the exact dates included in a pattern. - Move conn to last argument since most functions do that. - Clarified some commenting. - Minor formatting. - There are a lot of debug console statements due to the need to test more. They will be removed.
Mostly to protect against a mistake.
This version is not yet working in all cases but committing at this point. - The earlier fix to shift by 1 day caused it to make mistake. This changes it to shift by 1 minute that seems to work. - Unwinding the RRule set the end time with the duration rather than adding the duration to the start time. - Misc. commenting & debug console (to be removed)
- The edgeSegments were not yet sorted per a comment so that was added. - Added comments to timeVaryingPathConversion.
- The new code treated the result of invertConversion as an object but it was an array. Decided to convert to object and fix other call to work. - Fix invertConversion so works if slope or conversion are zero. - Misc minor fixes. - Suffix units do not work yet and have NaN for slope/intercept.
This is a version that has been moderately tested. For the first time the test data for developers now works. It has some TODO item including that it cannot deal with time-varying conversions with suffix units and not updating if suffix conversion changes. - Updated how path was updated to deal with time varying conversions. - Changed so cik updated based on cik_vary. This fixed issues with the old version that had issues and makes sure they are consistent.
Member
|
I have made a sequence of commits lately. At this point the status is:
Thanks to @davanmur for this contribution. I look forward to its formal inclusion in OED. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Created a backend function that could take in information from the weekly and daily conversion patterns, and created an rrule (recurrence rule) so that conversions patterns could easily and efficiently be applied over a length of time. Integrated that function in timeVaryingPathConversion.js.
Partly Addresses #896
Type of change
Checklist
Limitations