![]() The only place there was anything to delete was when clicking 'Where To' then choosing favourites from the options on the right of the screen. Its definitely stored on the internal memory of the device. Hi Ian - yeah im definitely sure theres no SD card in it, one of the first things I thought it might be. ![]() It appears there is no way to truly 'reset' the device back to what it would be if I bought it new from a shop. I have 'hard reset' the device twice with no change other than resetting my user preferences (home, sounds, etc).Ĭan anyone shed any further light on this? I would assume something as simple as this would be straightforward, but im now at a loss. I dont want to delete these as they appear critical to operation. ![]() There is nothing in the GPX -> Archives folder, and only 4 entries in the GPX folder - 'Current', 'CurrentTrackLog', 'GarminExpressImport' and 'Temp'. I have browsed the internal storage folder within windows explorer and cant see anywhere that such data may be stored. but they still appear in basecamp when I select the device. I have been through it many times, and exhausted all possible places where they may show up. ![]() I found these items in the 'favourites' menu and deleted them all, and conrifmed that there are no saved routes, trips, tracks, history or anything now showing anywhere on the device. A quick google search shows this is normal and that such data must be deleted on the device itself. When I select the device from within Basecamp, all the previous owner's waypoints, POI, 'home' data etc are displayed, and cant be deleted from within Basecamp. I have restored it to factory settings, created an account and registered the device to myself. I will probably have to do it in a after_commit on destory, but I will probably have to do it in a job.Having an issue on a Zumo 390LM that I bought from a member here. The reason I need this is to be able to delete the recordables along with the recording. Has_one :recording, as: :recordable, inverse_of: :recordable, touch: trueĭelegated_type :recordable, types: Recordable::TYPES, inverse_of: :recordingĪfter_commit :update_recordable, on: What I cannot yet figure is how to create a relationship from a Recordable, which can be anything, to a Recording. Record child, parent: recording, status: status, creator: creator Recordings.create!(options).tap do |recording| rge!(recordable: recordable, parent: parent, creator: creator) Yes, Basecamp has something along the lines of: def record(recordable, children: nil, parent: nil, creator: Current.person, **options) So that's where I left things so far, I'll have another look later but I thought you guys my have some interesting insights! Reply They should be recordables but children is used for recording descendants. I'm not sure what the children are supposed to be. It doesn't feel like there's a lot less to do.Īnother thing I don't get is the children association part in the record method that you see here. My understanding is that they don't have to copy the immutable objects, but they still have to duplicate the whole tree of recordings (the recording that points to the copied object as well as any of its descendants - other recordings that point to immutable objects related to the copied object), and they also need to duplicate things associated to the recording such as events or subscribers. They don't need a background job anymore to copy everything, but I don't really get why it's so much faster. Now in this video, here there's a mention that copying is a lot faster thanks to this pattern. So instead of having multiple models sharing the same concerns and attributes, you have the Recording model that takes care of all of that (and that's a lot of something as you saw above, in ).Īny content user-created (Document, Todo, Todolist, etc.) is immutable: instead of updating it, they create a new version, and the recording points to that new version while you get to keep a track of the changes thanks to the Event class. Has_many :children, class_name: 'Recording', foreign_key: :parent_idĭelegated_type : recordable, types: %w class Recording < ApplicationRecordīelongs_to :parent, class_name: "Recording", optional: true The core looks something like this, but you can see a glimpse of it here (lots of things are hidden within the concerns, such as the parent/children that must live in the Tree concern). It relies on a subpattern that is now part of rails, delegated types:, but there's also a notion of tree structure (recordings belong to other recordings) and of versioning/activity (there's an Event class involved as you can see here ). You can find breadcrumbs in the "On Writing Software Well" video series ( ) and a bit more details in this presentation ( ). Has anyone tried to unravel the recording pattern used in Basecamp 3 ?
0 Comments
Leave a Reply. |