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
Conway Shim API #789
Conway Shim API #789
Conversation
✅ Deploy Preview for bldrs-share ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Per convo, logging and error should accumulate to a vector during Init, OpenModel and Geometry/Mesh calls, etc. to optionally be accessed after each call by a method compatible with web-ifc, GetAndClearErrors. Only variant we thought up was to keep a map by IFC type, or perhaps by error type, to keep counts instead of 1:1 vector, since there is usually a high count involved that is slow to log. |
This model is probably not appropriate for the server-side use cases where
a process might fall over halfway through (say due to hitting the heap
allocation limit) and we'd want the contents of the log to determine where.
I strongly recommend abstracting logging such that accumulating in a vector
in this fashion is optional for use cases where it's appropriate. That's
partly why I suggested using a proxy that allowed multiple logging targets.
…On Tue, Sep 19, 2023 at 11:53 PM Pablo Mayrgundter ***@***.***> wrote:
Per convo, logging and error should accumulate to a vector during Init,
OpenModel and Geometry/Mesh calls, etc. to optionally be accessed after
each call by a method compatible with web-ifc, GetAndClearErrors
<https://ifcjs.github.io/web-ifc/docs/classes/web_ifc.IfcAPI.html#GetAndClearErrors>
.
Only variant we thought up was to keep a map by IFC type, or perhaps by
error type, to keep counts instead of 1:1 vector, since there is usually a
high count involved that is slow to log.
—
Reply to this email directly, view it on GitHub
<#789 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABGKI3O7BL6DQLBYUPMLGU3X3G5WNANCNFSM6AAAAAA4YVMI34>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Ok, builds for me.. nice :) Please respond to My&Conor's comments about logging. Couples questions on build. Where did you land with Ogali's build process? Should we see 2 previews here? Also, is this safe to check-in and won't affect production? |
Regarding logging, a logging proxy that maps to multiple targets makes sense. I think this should come in a later PR though as geometry type coverage is taking precedence, and then we can circle back and hit logging across Conway / Conway-Geom, Shim, Sentry, etc. As for build process, it looks like it's just generating one link still. If you checked this in, it would currently deploy Conway Shim and not Web-IFC, which might not be what we want yet due to coverage. We should page @oogali about how we can deploy this using the subdomain(s) as discussed. |
Ok yep, should check in without overriding prod.. LGTM and I'll hand off to Ogali now |
✅ Deploy Preview for bldrs-share-v2 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Hey Nick, We brought up at mtg the possibility that all you need to do here is flip the default from conway to web-ifc. Is that all that's left to determine? If so, I suggest trying that and submitting, but stand by to revert if need be. How's the sound? |
Hey @pablo-mayrgundter, Ogali and I took a look on Friday. In addition to changing the default "build" back to web-ifc (that change is already here), there are a few changes I just pushed up for Github actions, so it will actually test and run both the shim and original web-ifc backend. Once I can confirm the Github Action changes work we should be good to go. |
Signed-off-by: nickcastel50 <nickcastel50@gmail.com>
…ore running conway tasks
This is a full implementation of a shim for the Web-IFC read API capabilities. I will place build instructions here since I don't want to edit the developer guide just yet until it lands, and there are currently no extra build instructions in the readme.
Build Instructions:
yarn add ./bldrs-conway-v0.0.1.tgz --production
yarn add shx
Conway Shim:
yarn build-conway
yarn serve-share-conway
Original Web-IFC
yarn build-webifc
yarn serve-share-webifc