profile
viewpoint

Igor-Palaguta/AsyncDispatcher 4

Library for asynchronous operations, for managing dependencies

Igor-Palaguta/ESOmniture 2

This is a custom opensource library for the Omniture protocol

Igor-Palaguta/accengage-ios-extension-sdk-releases 0

The Accengage iOS Framework Extension Releases

Igor-Palaguta/accengage-ios-sdk-releases 0

The Accengage iOS Framework Releases

Igor-Palaguta/ADFlipTransition 0

An alternative presentation animation for iOS. Mimics the flip animation from the iOS iTunes/App Store.

Igor-Palaguta/ADTickerLabel 0

An objective-c UIView which provide a mechanism to show numbers with rolling effect, like in counter

Igor-Palaguta/AFHTTPRequestOperationLogger 0

AFNetworking Extension for HTTP Request Logging

Igor-Palaguta/AFNetworkActivityLogger 0

AFNetworking 2.0 Extension for Network Request Logging

Igor-Palaguta/AMScrollingNavbar 0

Scrollable UINavigationBar that follows the scrolling of a UIScrollView

issue closedGraphQLSwift/GraphQL

intValue() always throws exception

case .number(value as Int) always fails as Number can not be casted to Int

GraphQL: 1.1.7 Xcode: 12

Screenshot 2020-09-26 at 00 43 49

closed time in 2 days

Igor-Palaguta

issue closedGraphQLSwift/GraphQL

0 default value for argument is interpreted as false and can not be used

We have in application argument with default value 0 "offset": GraphQLArgument(type: GraphQLInt, defaultValue: 0),

If this argument is not passed, then instead of integer 0 boolean false is used. So arguments["offset"].int returns nil

In the screenshot you can see that Any 0 is casted to Bool and is interpreted as false

It happens as try JSONSerialization.jsonObject(with: data, options: .allowFragments) returns NSNumber, and 0 is interpreted as false (https://developer.apple.com/documentation/foundation/nsnumber/1410865-boolvalue)

Screenshot 2020-10-09 at 01 04 55

GraphQL 1.1.7 Xcode Version 12.0 (12A7209)

closed time in 2 days

Igor-Palaguta

pull request commentGraphQLSwift/GraphQL

Fix intValue() that always failed

Thank you @paulofaria !

Igor-Palaguta

comment created time in 2 days

pull request commentGraphQLSwift/GraphQL

Fix intValue() that always failed

@paulofaria please can you have a look

Igor-Palaguta

comment created time in 3 days

issue commentGraphQLSwift/GraphQL

0 default value for argument is interpreted as false and can not be used

Fixed here https://github.com/GraphQLSwift/GraphQL/pull/71

Igor-Palaguta

comment created time in 3 days

push eventIgor-Palaguta/GraphQL

Igor Palaguta

commit sha fd8c7bf16bb853e7de168a0809e65106454029a8

Get rid double conversion Map => String => Map

view details

push time in 3 days

issue commentGraphQLSwift/GraphQL

intValue() always throws exception

Please check this https://github.com/GraphQLSwift/GraphQL/pull/71

Igor-Palaguta

comment created time in 3 days

PR opened GraphQLSwift/GraphQL

Fix intValue() that always failed

Fix intValue() and doubleValue() and add tests for them Remove unused error cases

+59 -13

0 comment

2 changed files

pr created time in 3 days

create barnchIgor-Palaguta/GraphQL

branch : intValue

created branch time in 3 days

push eventtable-tennis-it/TableTennisITCup

Igor-Palaguta

commit sha 34634e8afdd030f4744702c79eb10d402849bc26

Update personal-rating.tsv

view details

push time in 9 days

issue openedvapor/postgres-nio

UUID decoding fails

UUID is failing during decode. In code similar to this:

struct MyObject: Content {
   let id: UUID
}
id uuid NOT NULL
database.simpleQuery("SELECT id from MyTable").all(decoding: MyObject.self)

Not familiar with formatCode. But in case if it is text why we can't use string property of PostgresData to convert it to UUID? Screenshot 2020-10-11 at 00 29 42

created time in 16 days

issue commentSwifQL/SwifQL

public init for OrderByItem

Thank you

Igor-Palaguta

comment created time in 16 days

issue commentSwifQL/SwifQL

public init for OrderByItem

Looks like direction method is deprecated in SwifQL 2.0. Is there any way to implement this without if?

Igor-Palaguta

comment created time in 16 days

issue commentGraphQLSwift/GraphQL

0 default value for argument is interpreted as false and can not be used

For proper detection what value is hidden under NSNumber can be used code from https://stackoverflow.com/a/30223989/2035054

func isBoolNumber(num: NSNumber) -> Bool
{
    let boolID = CFBooleanGetTypeID() // the type ID of CFBoolean
    let numID = CFGetTypeID(num) // the type ID of num
    return numID == boolID
}

CFBooleanGetTypeID is already used in several places in GraphQL

Igor-Palaguta

comment created time in 18 days

issue openedGraphQLSwift/GraphQL

0 default value for argument is interpreted as false and can not be used

We have in application argument with default value 0 "offset": GraphQLArgument(type: GraphQLInt, defaultValue: 0),

If this argument is not passed, then instead of integer 0 boolean false is used. So arguments["offset"].int returns nil

In the screenshot you can see that Any 0 is casted to Bool and is interpreted as false

Screenshot 2020-10-09 at 01 04 55

GraphQL 1.1.7 Xcode Version 12.0 (12A7209)

created time in 18 days

issue openedSwifQL/SwifQL

Should be SwifQLPartAlias init public?

SwifQLPartAlias is declared is public, but it can not be created as init is internal. Can be init publicized?

created time in 19 days

issue openedGraphQLSwift/GraphQL

intValue() always throws exception

case .number(value as Int) always fails as Number can not be casted to Int

GraphQL: 1.1.7 Xcode: 12

Screenshot 2020-09-26 at 00 43 49

created time in a month

create barnchIgor-Palaguta/Color-Picker-for-iOS

branch : LanscapePosition

created branch time in a month

push eventIgor-Palaguta/Color-Picker-for-iOS

Igor Palaguta

commit sha f81b62f8e4d97722bf6fb947392ef60b918e474f

Make init public

view details

push time in a month

PR opened hayashi311/Color-Picker-for-iOS

public init

Hello,

Thank you for nice library

Could not create picker from code with init(frame:) as init was not public. Also made class final (it is not open so it is not expected to inherit from it). Also added some missed private. And after running pod install cocoapods fixed acknowledgments and podspec json

+268 -200

0 comment

8 changed files

pr created time in a month

create barnchIgor-Palaguta/Color-Picker-for-iOS

branch : PublicInit

created branch time in a month

fork Igor-Palaguta/Color-Picker-for-iOS

Colorful: iOS color picker built with Swift.

fork in a month

startedcezheng/Fuzi

started time in a month

issue commentvapor/fluent-kit

operator does not exist: enum = text (op_error)

PR with fix https://github.com/vapor/fluent-kit/pull/387

Igor-Palaguta

comment created time in a month

push eventIgor-Palaguta/fluent-kit

Igor Palaguta

commit sha 2f2377b09845ae3f6ee98142908d83ba7ac154aa

FooEnumMigration

view details

push time in a month

PR opened vapor/fluent-kit

Fix enums in filter
+45 -4

0 comment

2 changed files

pr created time in a month

create barnchIgor-Palaguta/fluent-kit

branch : EnumFilter

created branch time in a month

fork Igor-Palaguta/fluent-kit

Swift ORM (queries, models, and relations) for NoSQL and SQL databases

fork in a month

issue commentvapor/fluent-kit

operator does not exist: enum = text (op_error)

Looks like instead of

    @discardableResult
    public func filter<Field>(
        _ field: KeyPath<Model, Field>,
        _ method: DatabaseQuery.Filter.Method,
        _ value: Field.Value
    ) -> Self
        where Field: QueryableProperty, Field.Model == Model
    {
        self.filter(Model.path(for: field), method, value)
    }

Should be

    @discardableResult
    public func filter<Field>(
        _ field: KeyPath<Model, Field>,
        _ method: DatabaseQuery.Filter.Method,
        _ value: Field.Value
    ) -> Self
        where Field: QueryableProperty, Field.Model == Model
    {
        self.filter(.path(
            Model.path(for: field),
            schema: Model.schemaOrAlias
        ), method, Field.queryValue(value))
    }

@tanner0101 please can you check, if yes - can prepare PR

Igor-Palaguta

comment created time in a month

startedjohnpatrickmorgan/wtfautolayout

started time in a month

PR opened vapor/leaf

Pass custom tags to renderer

Custom tags were ignored, just default tags are used

+1 -0

0 comment

1 changed file

pr created time in a month

create barnchIgor-Palaguta/leaf

branch : PassCustomTagsToRenderer

created branch time in a month

fork Igor-Palaguta/leaf

🍃 An expressive, performant, and extensible templating language built for Swift.

fork in a month

issue openedvapor/fluent-kit

operator does not exist: enum = text (op_error)

Trying to migration application to Vapor 4. Please can you help, what am I doing incorrectly?

enum Language: String, Codable {
    case ukrainian = "uk"
    case english = "en"
}

final class Settings: Model {
   // ...
    @Enum(key: "language")
    var language: Language
   // ..
}

And after following request I have this error: operator does not exist: language = text (op_error)

Setting
   .query(on: request.db)
   .filter(\.$language, .equal, language)
   .all()

In log I can see proper SQL, looks like this issue happens during binding language

Thanks in advance

created time in a month

startedgroue/GRDB.swift

started time in 2 months

PublicEvent

startedsinoru/xcpretty-actions-formatter

started time in 2 months

push eventtable-tennis-it/TableTennisITCup

Igor-Palaguta

commit sha 32819bdf856686f83ff209b1a0a41dc59d4557b7

Update personal-rating.tsv

view details

push time in 3 months

startedctreffs/xcode-defaults

started time in 3 months

more