ActivitiesAtom Feed

Displaying activities 1 - 25 of 64 in total

September 25, 2017

  • Day 58

    Team berlin diamonds (Discourse) [2017] — at September 25, 2017 14:37 UTC

    Kaja:

    • merged the googledrive dev into master in order to add the download to our plugin
    • updated the fork of the core app
    • added a branch (button) to the core app
    • updated the bundler version and installed missing gems
    • changed the skip_before_filter to skip_before_action because it was raising an no method error
    • tried to display the downloader button in backups#index
    • had problems with the route in ember
    • talked to our mentor about the issue
    • tried around a few versions with a yml file and a nav-item and nothing was really properly rendered
    • installed the ember inspector and found our about how the route has correctly to be named
    • changed the container around the ember to a <ul>
    • updated the discourse fork and merged the last updates into my button branch
    • made a PR to the core app
    • added a nameTag field to the button
    • merged the branches into the googledrive master

  • Day 57

    Team berlin diamonds (Discourse) [2017] — at September 25, 2017 08:37 UTC

    Kaja:

    • set up the discourse app on my home computer in order to be able to contribute also after the summer
    • changed some slides of the presentation

September 21, 2017

  • Day 56

    Team berlin diamonds (Discourse) [2017] — at September 21, 2017 14:38 UTC

    We:

    • added the token to our downloadersController, so only the actual user can download the protected backups and also can only do that once
    • added an error-template
    • started creating a button for the index to appear in the backups view
    • practiced the presentation

September 20, 2017

  • Day 55

    Team berlin diamonds (Discourse) [2017] — at September 20, 2017 14:03 UTC

    Kaja:

    -- put the next tasks into trello cards
    -- updated the core app
    -- installed mailcatcher
    -- fixed the download function for the dropbox plugin
    -- made a PR to the dropbox master
    -- started fixing the nextcloud plugin
    -- found some issues with the nextcloud plugin, because 1. the API doesn't give us a file_id and 2. there is no download method for the Ocman gem, only a share method
    -- had interesting errors when running the downloadersController#index method in the nextcloud plugin: first run I got Net::ReadTimeout: Net::ReadTimeout, on the second Net::HTTPFatalError: 502 "Bad Gateway": /remote.php/webdav/localhost and on the third I got

    You are setting a key that conflicts with a built-in method Hashie::Mash#size defined in Hash. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
    Module::DelegationError: ActionController::RackDelegation#content_type delegated to @_response.content_type, but @_response is nil: #<DownloadersController:0x007f8bb4dd96a8 @_action_has_layout=true, @_routes=nil, @_headers={"Content-Type"=>"text/html"}, @_status=200, @_request=nil, @_response=nil, @_db_runtime=14.481000000000002>

    -- created a baseclass for the downloader

September 19, 2017

  • Day 54

    Team berlin diamonds (Discourse) [2017] — at September 19, 2017 14:32 UTC

    We:

    • - installed mailcatcher in order to see if we are really executing the email job
    • - after fixing some bugs the emails got sent
    • - when we clicked the url in the email we needed to also provide a new show action and build a route for that
    • - after having the route and the show action the link worked but it still didnt download the file because we were only giving the flie_ide instead of the name
    • - so we memoized the name in the downloader and called it in the show action
    • - talked to our mentor about our issues and he gave us a few helpful tipps
    • - after a few fixes here and there the downloading worked very well
    • - talked about our presentation and how we want to structure it and split up the talking between us
    • - made a plan for the next few days and tasks
    • - talked again about our experience during the summer of code and about how we want to continue coding together afterwards

September 18, 2017

  • Day 53

    Team berlin diamonds (Discourse) [2017] — at September 18, 2017 13:49 UTC

    Kaja:

    • tried to get the controller-action branch running in the google plugin, but got an error: 404 GET downloader.json
    • looked at the dropbox plugin and pulled from its master
    • built a downloader and a controller for dropbox
    • built routes for the index and create actions
    • built an ember view for dropbox
    • had errors displaying the downloadersController#index for either googledrive or dropbox
    • fixed errors
    • had the view displayed for the dropbox plugin
    • didn't know how to save the downloaded file

September 15, 2017

  • Day 52

    Team berlin diamonds (Discourse) [2017] — at September 15, 2017 09:57 UTC

    We:

    • had a deep look into the structure of the actual process of downloading a file, in order to understand how we want to build the controller methods
    • discovered how to check the network responses in the browser inspector with our coach
    • started understanding which controller actions we need and which routes and how to trigger the job
    • talked about our schedule for the next week
    • set the dates on when to keep working on the google drive plugin together

September 14, 2017

  • Day 51

    Team berlin diamonds (Discourse) [2017] — at September 14, 2017 12:25 UTC

    Kaja:

    • talked to Jen on what I want to do today and when to meet tomorrow
    • looked through all my working branches and did some spring cleaning there
    • pulled changes from core app and updated our fork
    • migrated the test database RAILS_ENV=test rake db:drop db:create db:migrate
    • ran the tests of the whole core app (all green)
    • wrote a plan on what to do next in the download-issue
    • created a new branch in the google plugin and changed the controller and the routes in a way how I would understand it
    • wrote down questions I have about the download controller
    • added all things from the assets to the nextcloud plugin, but it still doesn't work
    • looked at the js files of admin backup

September 13, 2017

  • Day 50

    Team berlin diamonds (Discourse) [2017] — at September 13, 2017 15:28 UTC

    Kaja:

    • prepared a presentation for the 22nd
    • had a very successfull talk with Jen and our supervisor about project manament and team communication

September 11, 2017

  • Day 48

    Team berlin diamonds (Discourse) [2017] — at September 11, 2017 14:30 UTC

    Kaja:

    • talked to team about solving communication problems
    • did some ruby execises on codewars
    • read about hanami and how to set up an app with it

September 08, 2017

  • Day 47

    Team berlin diamonds (Discourse) [2017] — at September 8, 2017 14:23 UTC

    Jen:

    Opened an issue yesterday in the google drive gem repository. The download method returns nil and I was wondering if this was an expected behavior, as I thought it would be a file object. I've used File to retrieve it.
    Wrote a minified version / draft of a method in the controller that downloads a file and played with routes to connect frontend and backend in the same endpoint. Managed to trigger the action from the button. Sent a PR to our repo.

    Kaja:

    • answered a post on meta that reported an issue with the box-plugin
    • read jens messages
    • had some frustrations
    • took a walk to get over frustrations
    • went back to the office and looked at the code
    • looked at the job and pushed changes to another branch
    • took a look at the hackathon in our building

September 07, 2017

  • Day 46

    Team berlin diamonds (Discourse) [2017] — at September 7, 2017 15:08 UTC

    Kaja:

    • read a post on meta about an issue with the box plugin and looked at the code. The job and the event looked alright, so I looked at the synchronizer.
    • pulled google plugin from dev
    • ran tests in the google plugin but got json parse errors
    • ran tests in the nextcloud plugin and wrote some new ones
    • didn't find any tasks or anyone else from our team online, so I just did ome katas on codewars

September 06, 2017

  • Day 45

    Team berlin diamonds (Discourse) [2017] — at September 6, 2017 15:05 UTC

    Jen:

    Merged eviltrout's ember structure into our dev branch.
    Created a layout for our download feature.
    Read about => arrow function in ES6
    Watched a tutorial: Connecting Ember with the Rails API
    Wrote a download action in the ember controller
    Created an ember model for the backups and tried to make it work // Deleted the model because we don't need it
    Connected the button in the template for each file to an ember download action, it passes its :file_id

    Kaja:

    • talked to Jen about her changes and how we want to use the ember action to create the download link
    • read 2 articles: first about I18n and second about the difference of the PUTand POST verbs in a create action
    • changed the initialized argument for the downloader to backup
    • looked at the BackupController od Discourse and read about the MessageBus gem
    • had problems finding a task to work on since we didnt talk about a plan on what to further work on

September 05, 2017

  • Day 44

    Team berlin diamonds (Discourse) [2017] — at September 5, 2017 14:46 UTC

    Jen:

    Pulled dev to my downloader branch.
    Looked through the specs of the core backups controller.
    Read the Action Controller guide.
    Cloned eviltrout's branch with the Ember routing and templates sampling, but I get a 304 response when trying to access the url in the browser.
    Looked through Discourse ember-related core code, tried unsuccessfully to display the Ember for our json list.

    Kaja:

    • ran the tests for the googledrive plugin and changed some small things in order to get them green
    • pushed changes to github
    • ran the tests in the nextcloud plugin and had the routes fail, because they still had the old names
    • after changing their names I got failures concerning the url request
    • looked over failing tests together with Jen and coach
    • commented the requires_plugin line out in the controller, cause it was raising errors in the tests
    • had the tests go green
    • still had problems displaying the json file in the ember view
    • added some tests in the downloaderscontrollerspec but didn't get them to work
    • pushed my changes to a github branch in order to document my journey codewise
    • fixed some of the ember view issues with our mentor, but still had problems displaying our files
    • fixed displaying something that looks like files and are able to work from there
    • got some good advice on how to deal with frustration from our mentor
    • closed the work with a good feeling

September 04, 2017

  • Day 43

    Team berlin diamonds (Discourse) [2017] — at September 4, 2017 14:49 UTC

    Kaja:

    • looked at our mentors example for the ember frontend
    • made the same frontend-structure for the nextcloud-plugin
    • didn't get any view to run looked into the Serializer and tried to understand it
    • got several errors when trying to display a view
    • dropped this task and read about rubocop
    • installed and used rubocop
    • cleaned up some code
    • updated our discourse fork
    • added the admin-login to the tests

    Jen:

    Completed the JavaScript course by NodeSchool
    Got familiar with npm
    Read about Emberjs

September 01, 2017

  • Day 42

    Team berlin diamonds (Discourse) [2017] — at September 1, 2017 14:49 UTC

    Jen:

    Updated the Dropbox plugin to fix a bug someone mentioned in meta.discourse
    Read more about working with directories and files from Rails
    Researched and read about .tap method again
    Looked into Discourse core code related to backups again
    Realised that we don't need the .tap method I've wrote which gave an url to the file, and deleted it. Instead, the url to download the file comes from the #show method .
    Wrote #show and #email methods, and routes for them

    Kaja:

    • looked at jens changes on the dropbox plugin master
    • tried to build a view with ember for nextcloud and for googledrive and STILL had the same issues
    • wrote tests for the nextcloud downloader and learned about stubbing a http-request
    • got the tests run green
    • updated the discourse app and the other plugin branches
    • had a talk with Jen and our mentor
    • was releaved to hear that the ember issues are a gnarly thing and that our mentor will help us with a new example and a nice documentation

August 31, 2017

  • Day 41

    Team berlin diamonds (Discourse) [2017] — at August 31, 2017 14:44 UTC

    Our plugin stores backups in Google Drive using a service account. Service accounts belong to the application, so they don't allow accessing files in the browser. The user can't retrieve files from there directly.
    For our next task we are building an API that downloads the file from drive to Discourse, and when it's ready, send an email with an url to download from Discourse directly.

    Jen:
    Read about upload/download actions in Rails.
    Read about IO and Tempfile.
    Looked at the backup-related source code of Discourse.
    Learnt about writing methods that create directories and files. Played around with it in the console.
    Created a download method that downloads the files from Google Drive to the backups folder of Discourse.
    Created a tap method that gives properties to the original downloaded object to serve it with a public url.

    Kaja:

    • continued to build a frontend for the nextcloud plugin downloader in order to be able to try out a real case scenario
    • fixed a bug in the dropbox plugin and commented that on meta
    • looked into the download method to the server
    • pulled from googledrive dev
    • updated discourse fork

August 29, 2017

  • Day 39

    Team berlin diamonds (Discourse) [2017] — at August 29, 2017 14:56 UTC

    Kaja:

    • read github notifications
    • looked at Jens pull requests
    • pulled from remote dev branch
    • ran Jens tests => failed
    • migrated the test db
    • => Jens tests all went green
    • started writing specs for a create action in the controller_spec
    • worked on the create action and the routes until tests went green
    • merged changes into dev
    • started building a nextcloud-downloader
    • had problems generating a download url
    • talked to project mentor
    • started making the view for the downloader

August 28, 2017

  • Day 38/39

    Team berlin diamonds (Discourse) [2017] — at August 28, 2017 14:52 UTC

    Jen:

    Spent the morning trying to write a method that executes a Job but kept getting different errors in the console, mainly this: Module::DelegationError which I don't know where it comes from .

    Read about Service Account in Drive because the urls are private, but we need to send a download link via email to the users. Got a bit frustrated... we were trying to build things on top of dysfunctional stuff. Asked our mentor and he helped out to clarify the process.

    Realised that we really waste too much time trying to unnecessarily "figure out" + restart the console + guess + "conceptualise" + etc etc etc . Finally learnt the hard way that RSpec is a friend ---> Asked Robin for some enlightening --> started to write tests and got some green running.

    Kaja:

    • was at home thrusday and friday due to an injury on her head
    • looked through Jen's merge and compared the code to my download-branch
    • talked to Jen about what to do next
    • learned from Robin how the post action is sending the :id as a param to the controller method
    • tried http POST requests in the console with curl, but it didn't allow me to send the id as a param
    • getting HTTP/1.1 403 Forbidden < X-Frame-Options: SAMEORIGIN < X-XSS-Protection: 1; mode=block which is the CSRF checking

August 24, 2017

  • Day 38

    Team berlin diamonds (Discourse) [2017] — at August 24, 2017 14:02 UTC

    Jen:

    Looked into other people's plugins code in Discourse to see how to inject a controller into the app from our plugin.

    Pulled Kaja's download branch to check the code that should render the JSON defined in the script but it didn't work. Looked into fixing the uninitialized constant, but I found a lot of new code and decided to create a different branch with a simpler approach prescinding of Engines.

    Got the JSON rendered in the browser doing the following:

    Created a controller with pluralised name (downloaders controller.rb), with a show action that initialises the DriveDownloader, calls the method that generates the json and renders it.
    Loaded the controller file in the after_initialize method in plugin.rb
    Appended a GET route in plugin.rb for downloaders#show action

    Got the new task from our mentor: tried to create a new action that enqueues a Job but I don't know how to debug or test if it's correct. Spent hours that led to nothing on this.

    Started the Code School Rspec course.

August 23, 2017

  • Day 37

    Team berlin diamonds (Discourse) [2017] — at August 23, 2017 15:26 UTC

    Kaja:

    • added 2 params to the json-file display (time&size)
    • added a file-object before the files
    • pushed my changes to a seperate branch
    • build a controller using the engine structure
    • drew the routes
    • rendered the json
    • read about the engine in rails

August 22, 2017

  • Day 36

    Team berlin diamonds (Discourse) [2017] — at August 22, 2017 14:37 UTC

    We've first created the feature to to send backup files to different cloud providers. One of our next task is to enable the possibility of accessing and downloading those files from Discourse. We've done some pair programming and started to build the download feature.

    Jen:

    Updated Box and Drive plugins to use the new listener to hook them into Discourse main app.
    Created a ruby script to play with building JSON objects and interact with the google drive API

    Kaja:

    posted on discourse meta about the issue with falcos plugin
    doodled around building a downloader
    started building the downloader for real
    talked to our project mentor
    asked for merchandise tshirts from discourse and ordered them
    committed our changes to github
    

August 21, 2017

  • Day 35

    Team berlin diamonds (Discourse) [2017] — at August 21, 2017 16:08 UTC

    Kaja:

    • read about currying in Ruby
    • read the notifications in github
    • wrote an email to the nextcloud conference about when to hold my talk about our plugins
    • tried to write a script that loads gems and their dependencies for the plugins
    • looked for conferences but couldn't find anything interesting
    • put PluginGems of nextcloud into a gemfile and bundled them with bundler
    • searched for a solution of how to put download-files into a JSON